Skip to content

Commit

Permalink
Update to detect staging packages in cleaner action
Browse files Browse the repository at this point in the history
#73 (comment)

Fix missing task in #71
  • Loading branch information
kachick committed May 15, 2024
1 parent fe805e0 commit 8c34c7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cleanup-staging-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
gh api --paginate \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/users/kachick/packages/container/ubuntu-nix-systemd/versions \
/users/kachick/packages/container/ubuntu-24.04-nix-systemd/versions \
--jq '.[] | select(.metadata.container.tags[] | match("^pr-${{ steps.get-meta.outputs.pr_number }}-")).id' | \
ruby -e 'puts STDIN.each_line.map(&:chomp).join(",")' | \
gh-action-escape -name=ubuntu-nix-systemd-package-version-ids | tee -a "$GITHUB_OUTPUT"
gh api --paginate \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/users/kachick/packages/container/ubuntu-nix-sudoer/versions \
/users/kachick/packages/container/ubuntu-24.04-nix-sudoer/versions \
--jq '.[] | select(.metadata.container.tags[] | match("^pr-${{ steps.get-meta.outputs.pr_number }}-")).id' | \
ruby -e 'puts STDIN.each_line.map(&:chomp).join(",")' | \
gh-action-escape -name=ubuntu-nix-sudoer-package-version-ids | tee -a "$GITHUB_OUTPUT"
Expand All @@ -54,14 +54,14 @@ jobs:
- uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
with:
owner: ${{ github.repository_owner }}
package-name: 'ubuntu-nix-systemd'
package-name: 'ubuntu-nix-24.04-systemd'
package-type: 'container'
token: ${{ github.token }}
package-version-ids: ${{ steps.inspect-package.outputs.ubuntu-nix-systemd-package-version-ids }}
- uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
with:
owner: ${{ github.repository_owner }}
package-name: 'ubuntu-nix-sudoer'
package-name: 'ubuntu-nix-24.04-sudoer'
package-type: 'container'
token: ${{ github.token }}
package-version-ids: ${{ steps.inspect-package.outputs.ubuntu-nix-sudoer-package-version-ids }}
Expand Down

0 comments on commit 8c34c7e

Please sign in to comment.