-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c0d0ca
commit d45ef20
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,16 @@ outputs: | |
runs: | ||
using: composite | ||
steps: | ||
# Cleanup if inputs.keep_versions provided | ||
- name: GHCR Cleanup | ||
if: ${{ inputs.keep_versions }} | ||
uses: actions/[email protected] | ||
with: | ||
package-name: "${{ github.event.repository.name }}/${{ inputs.package }}" | ||
package-type: "container" | ||
min-versions-to-keep: ${{ inputs.keep_versions }} | ||
ignore-versions: "${{ inputs.keep_regex }}" | ||
|
||
# Process variables and inputs | ||
- id: vars | ||
shell: bash | ||
|
@@ -160,16 +170,6 @@ runs: | |
cache-to: type=gha,mode=max | ||
build-args: ${{ inputs.build_args }} | ||
|
||
# Cleanup if inputs.keep_versions provided | ||
- name: GHCR Cleanup | ||
if: ${{ inputs.keep_versions }} | ||
uses: actions/[email protected] | ||
with: | ||
package-name: "${{ github.event.repository.name }}/${{ inputs.package }}" | ||
package-type: "container" | ||
min-versions-to-keep: ${{ inputs.keep_versions }} | ||
ignore-versions: "${{ inputs.keep_regex }}" | ||
|
||
# Action repo needs to be present for cleanup/tests | ||
- name: Checkout local repo to make sure action.yml is present | ||
if: ${{ github.repository }} != ${{ inputs.repository }} | ||
|