File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 56
56
cache : warm
57
57
steps :
58
58
- uses : actions/checkout@v4
59
+ - name : Install Node
60
+ uses : actions/setup-node@v2
61
+ with :
62
+ node-version : ' 22'
59
63
- name : Restore Bins
60
64
uses : actions/cache/restore@v4
61
65
with :
82
86
timeout-minutes : 15
83
87
steps :
84
88
- uses : actions/checkout@v4
89
+ - name : Install Node
90
+ uses : actions/setup-node@v2
91
+ with :
92
+ node-version : ' 22'
85
93
- name : Restore Bins
86
94
uses : actions/cache/restore@v4
87
95
with :
@@ -104,6 +112,10 @@ jobs:
104
112
timeout-minutes : 5
105
113
steps :
106
114
- uses : actions/checkout@v4
115
+ - name : Install Node
116
+ uses : actions/setup-node@v2
117
+ with :
118
+ node-version : ' 22'
107
119
- name : Download Results
108
120
uses : actions/download-artifact@v4
109
121
with :
@@ -137,3 +149,13 @@ jobs:
137
149
github_token : ${{ secrets.GITHUB_TOKEN }}
138
150
publish_dir : chart/results
139
151
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
You can’t perform that action at this time.
0 commit comments