Skip to content

Commit

Permalink
Inject required GITHUB_TOKEN env var in cleanup_packages workflow (
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirschfeld committed Nov 5, 2023
1 parent 3434533 commit a6797a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cleanup-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ jobs:
shell: bash -l {0}
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.CI_PACKAGES }}
run: |
set -euox pipefail
devtool --version
packages=$(
devtool github packages list --owner 'energy-quants' --json \
| jq '.[] | select(.repository.full_name == "energy-quants/eq-devtools") | .name'
| jq -r '.[] | select(.repository.full_name == "energy-quants/eq-devtools") | .name'
)
for package in $packages; do
echo $package
# devtool github packages cleanup --owner 'energy-quants' --package "${package}"
# devtool github packages list-versions --owner 'energy-quants' --package "${package}"
devtool github packages cleanup --owner 'energy-quants' --package "${package}" --max-age=-1
done

0 comments on commit a6797a8

Please sign in to comment.