1+ ---
12name : Update Node Size Data
23
34on :
@@ -11,55 +12,56 @@ jobs:
1112 permissions :
1213 contents : write
1314 steps :
14- - uses : actions/checkout@v4
15+ - name : Checkout repository
16+ uses : actions/checkout@v6
1517
16- - name : Use Node.js
17- uses : actions/setup-node@v4
18- with :
19- node-version : ' 20.9.0 ' # or whatever version you're using
18+ - name : Use Node.js
19+ uses : actions/setup-node@v6
20+ with :
21+ node-version : 22
2022
21- - name : Install dependencies
22- run : npm ci
23+ - name : Install dependencies
24+ run : npm ci
2325
24- - name : Run update script
25- env :
26- LINEA_OBSERVABILITY_USER : ${{ secrets.LINEA_OBSERVABILITY_USER }}
27- LINEA_OBSERVABILITY_PASS : ${{ secrets.LINEA_OBSERVABILITY_PASS }}
28- run : node scripts/fetchNodeSize.js
26+ - name : Run update script
27+ env :
28+ LINEA_OBSERVABILITY_USER : ${{ secrets.LINEA_OBSERVABILITY_USER }}
29+ LINEA_OBSERVABILITY_PASS : ${{ secrets.LINEA_OBSERVABILITY_PASS }}
30+ run : node scripts/fetchNodeSize.js
2931
30- - name : Check for existing PR
31- id : check-pr
32- run : |
33- PR_BRANCH="update-node-size-data"
34- EXISTING_PR=$(gh pr list --head $PR_BRANCH --json number,title,state | jq -r '.[0]')
35- if [ "$EXISTING_PR" != "null" ]; then
36- echo "Found existing PR: $EXISTING_PR"
37- echo "pr_number=$(echo $EXISTING_PR | jq -r '.number')" >> $GITHUB_OUTPUT
38- else
39- echo "No existing PR found"
40- fi
32+ - name : Check for existing PR
33+ id : check-pr
34+ run : |
35+ PR_BRANCH="update-node-size-data"
36+ EXISTING_PR=$(gh pr list --head $PR_BRANCH --json number,title,state | jq -r '.[0]')
37+ if [ "$EXISTING_PR" != "null" ]; then
38+ echo "Found existing PR: $EXISTING_PR"
39+ echo "pr_number=$(echo $EXISTING_PR | jq -r '.number')" >> $GITHUB_OUTPUT
40+ else
41+ echo "No existing PR found"
42+ fi
4143
42- - name : Update existing PR or create new one
43- if : steps.check-pr.outputs.pr_number == ''
44- uses : peter-evans/create-pull-request@v3
45- with :
46- token : ${{ secrets.GITHUB_TOKEN }}
47- commit-message : Update node size data
48- title : ' Update Node Size Data'
49- body : |
50- This is an automated PR to update the node size data.
51- Please review the changes and merge if everything looks correct.
52- branch : update-node-size-data
53- delete-branch : true
44+ - name : Update existing PR or create new one
45+ if : steps.check-pr.outputs.pr_number == ''
46+ uses : peter-evans/create-pull-request@v3
47+ with :
48+ token : ${{ secrets.GITHUB_TOKEN }}
49+ commit-message : Update node size data
50+ title : ' Update Node Size Data'
51+ body : |
52+ This is an automated PR to update the node size data.
53+ Please review the changes and merge if everything looks correct.
54+ branch : update-node-size-data
55+ delete-branch : true
5456
55- - name : Update existing PR
56- if : steps.check-pr.outputs.pr_number != ''
57- run : |
58- git config --global user.name 'github-actions[bot]'
59- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
60- git add linea-node-size/data.json
61- git commit -m "Update node size data"
62- git push origin update-node-size-data
57+ - name : Update existing PR
58+ if : steps.check-pr.outputs.pr_number != ''
59+ run : |
60+ git config --global user.name 'github-actions[bot]'
61+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
62+ git add linea-node-size/data.json
63+ git commit -m "Update node size data"
64+ git push origin update-node-size-data
6365
6466 slackNotification :
6567 needs : [update-data]
7375 env :
7476 SLACK_CHANNEL : doc-ci-alerts
7577 SLACK_COLOR : danger
76- sSLACK_TITLE : Linea node size update - Failure
78+ SLACK_TITLE : Linea node size update - Failure
7779 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
7880 MSG_MINIMAL : true
0 commit comments