Skip to content

Commit

Permalink
use github default environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbreen committed Sep 5, 2023
1 parent 98d823e commit 0d5a838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
set -x
gh api /user/packages?package_type=container | jq -r --arg repo {{github.repository}} '.[] | select(.repository.full_name == $repo) | .name' | tee {{runner.temp}}/names.txt
gh api /user/packages?package_type=container | jq -r --arg repo $GITHUB_REPOSITORY '.[] | select(.repository.full_name == $repo) | .name' | tee $RUNNER_TEMP/names.txt
while read package
do
gh api /user/packages/container/${package//\//%2F}/versions | jq -r '.[] | select(.metadata.container.tags==[]) | .id' | tee {{runner.temp}}/ids.txt
gh api /user/packages/container/${package//\//%2F}/versions | jq -r '.[] | select(.metadata.container.tags==[]) | .id' | tee $RUNNER_TEMP/ids.txt
while read id
do
echo gh api --method DELETE /user/packages/container/${package//\//%2F}/versions/${id}
done < {{runner.temp}}/ids.txt
done < {{runner.temp}}/names.txt
done < $RUNNER_TEMP/ids.txt
done < $RUNNER_TEMP/names.txt
bazel:
name: Bazel Build & Test
Expand Down

0 comments on commit 0d5a838

Please sign in to comment.