Skip to content

Commit 1242bdd

Browse files
committed
Inject required GITHUB_TOKEN env var in cleanup_packages workflow (#26)
1 parent 3434533 commit 1242bdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cleanup-packages.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ jobs:
7676
shell: bash -l {0}
7777
env:
7878
GITHUB_USER: ${{ github.actor }}
79+
GITHUB_TOKEN: ${{ secrets.CI_PACKAGES }}
7980
run: |
8081
set -euox pipefail
8182
devtool --version
8283
packages=$(
8384
devtool github packages list --owner 'energy-quants' --json \
84-
| jq '.[] | select(.repository.full_name == "energy-quants/eq-devtools") | .name'
85+
| jq -r '.[] | select(.repository.full_name == "energy-quants/eq-devtools") | .name'
8586
)
8687
for package in $packages; do
87-
echo $package
88+
devtool github packages list-versions --owner 'energy-quants' --package "${package}"
8889
# devtool github packages cleanup --owner 'energy-quants' --package "${package}"
8990
done

0 commit comments

Comments
 (0)