Skip to content

Commit

Permalink
remove runid
Browse files Browse the repository at this point in the history
  • Loading branch information
dvhh committed Oct 16, 2024
1 parent c7713c6 commit ff782ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/cleanup-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
run: |
while read id
do
>&2 echo "deleting ${id} https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts/${id}"
curl -sv -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{inputs.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
-X DELETE "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts/${id}"
>&2 echo "deleting ${id} https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/artifacts/${id}"
curl -sfv -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{inputs.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
-X DELETE "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/artifacts/${id}"
done < list.txt

0 comments on commit ff782ad

Please sign in to comment.