Skip to content

Commit b40e177

Browse files
committed
fix: actions
1 parent f906b4b commit b40e177

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/benchmark.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
cache: warm
5757
steps:
5858
- uses: actions/checkout@v4
59+
- name: Install Node
60+
uses: actions/setup-node@v2
61+
with:
62+
node-version: '22'
5963
- name: Restore Bins
6064
uses: actions/cache/restore@v4
6165
with:
@@ -82,6 +86,10 @@ jobs:
8286
timeout-minutes: 15
8387
steps:
8488
- uses: actions/checkout@v4
89+
- name: Install Node
90+
uses: actions/setup-node@v2
91+
with:
92+
node-version: '22'
8593
- name: Restore Bins
8694
uses: actions/cache/restore@v4
8795
with:
@@ -104,6 +112,10 @@ jobs:
104112
timeout-minutes: 5
105113
steps:
106114
- uses: actions/checkout@v4
115+
- name: Install Node
116+
uses: actions/setup-node@v2
117+
with:
118+
node-version: '22'
107119
- name: Download Results
108120
uses: actions/download-artifact@v4
109121
with:
@@ -137,3 +149,13 @@ jobs:
137149
github_token: ${{ secrets.GITHUB_TOKEN }}
138150
publish_dir: chart/results
139151
force_orphan: true
152+
153+
cleanup:
154+
name: 'Cleanup'
155+
needs: [deploy]
156+
runs-on: ubuntu-latest
157+
if: always()
158+
steps:
159+
- name: Delete old artifacts
160+
run: |
161+
gh api repos/${{ github.repository }}/actions/artifacts --paginate | jq -r '.artifacts[] | select(.expired) | .id' | xargs -I {} gh api repos/${{ github.repository }}/actions/artifacts/{} -X DELETE

0 commit comments

Comments
 (0)