Skip to content

Commit

Permalink
Merge pull request #2 from dsp-testing/aeisenberg/keep-real-releases
Browse files Browse the repository at this point in the history
Only delete pre-releases
  • Loading branch information
aeisenberg authored Sep 1, 2021
2 parents 21e9ddd + eb6f139 commit 0a33409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
shell: bash
run: |
RELEASES=`gh release list --repo dsp-testing/codeql-cli-nightlies | sed '1,10d' | cut -f 3`
RELEASES=`gh release list --repo dsp-testing/codeql-cli-nightlies | grep "Pre-release" | sed '1,10d' | cut -f 3`
echo "$RELEASES" | awk NF | tr '\n' '\0' | xargs --no-run-if-empty -0 -n1 gh release delete --repo dsp-testing/codeql-cli-nightlies --yes
echo "$RELEASES" | awk NF | sed 's/^/\/repos\/dsp-testing\/codeql-cli-nightlies\/git\/refs\/tags\//' | tr '\n' '\0' | xargs --no-run-if-empty -0 -n1 gh api -X DELETE --silent

0 comments on commit 0a33409

Please sign in to comment.