Skip to content

Commit

Permalink
Avoid removing cache-sha image used as base (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored Jan 21, 2025
1 parent f505e2a commit 11fab9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ jobs:
matrix:
cleanup: ${{ fromJSON(needs.filter-matrix.outputs.cleanup-json || '[]') }}
steps:
# Remove pushed cached layers so re-runs start fresh. Avoid doing this on `main` as PRs rely on
# those images as a cache base.
- uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
if: ${{ github.ref != 'refs/heads/main' }}
with:
package: ${{ matrix.cleanup.package }}
delete-tags: ${{ matrix.cleanup.tags }}
Expand All @@ -196,4 +199,4 @@ jobs:
package: ${{ matrix.cleanup.package }}
older-than: 1 day
keep-n-tagged: 0
exclude-tags: branch-main,cache-branch-main
exclude-tags: cache-branch-main,cache-sha-${{ github.event.pull_request.base.sha || github.sha }}

0 comments on commit 11fab9d

Please sign in to comment.