Skip to content

Commit 708bcef

Browse files
committed
Move clean up into matrix.
1 parent 9ec34ea commit 708bcef

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ jobs:
116116
"| \(.name) | \((.size_in_bytes/1024/1024*10|round)/10) MB |"
117117
end' >> "$GITHUB_STEP_SUMMARY"
118118
119-
cleanup:
120-
needs: get_result
121-
runs-on: ubuntu-slim
122-
steps:
123-
- name: Delete run_id-* artifacts
119+
- name: Clean up
124120
run: |
125121
gh api repos/originlab/originlab.github.io/actions/runs/$GITHUB_RUN_ID/artifacts \
126-
-q '.artifacts[] | select(.name | startswith("run_id-")) | .id' \
122+
-q --arg target "run_id-${{ matrix.site }}" '.artifacts[] | select(.name == $target) | .id' \
127123
| xargs -I {} gh api -X DELETE repos/originlab/originlab.github.io/artifacts/{}

0 commit comments

Comments
 (0)