Skip to content

Commit 9ec34ea

Browse files
committed
Add clean up.
1 parent 860801d commit 9ec34ea

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,13 @@ jobs:
115115
else
116116
"| \(.name) | \((.size_in_bytes/1024/1024*10|round)/10) MB |"
117117
end' >> "$GITHUB_STEP_SUMMARY"
118-
118+
119+
cleanup:
120+
needs: get_result
121+
runs-on: ubuntu-slim
122+
steps:
123+
- name: Delete run_id-* artifacts
124+
run: |
125+
gh api repos/originlab/originlab.github.io/actions/runs/$GITHUB_RUN_ID/artifacts \
126+
-q '.artifacts[] | select(.name | startswith("run_id-")) | .id' \
127+
| xargs -I {} gh api -X DELETE repos/originlab/originlab.github.io/artifacts/{}

0 commit comments

Comments
 (0)