Skip to content

Commit

Permalink
Housekeep nightly built containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsihk authored Jul 22, 2024
1 parent efe4222 commit a89ef0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,18 @@ jobs:
secrets:
RELEASE_BOT_APP_ID: ${{ secrets.RELEASE_BOT_APP_ID }}
RELEASE_BOT_PRIVATE_KEY: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}

# Prevent accidental deletion by not using dynamic Action variables
housekeep-nightly-containers:
permissions:
packages: write
needs: [scan-nightly-build]
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v5
with:
owner: 'jimsihk'
package-name: 'alpine-moodle'
package-type: 'container'
delete-only-untagged-versions: 'true'
min-versions-to-keep: 0

0 comments on commit a89ef0a

Please sign in to comment.