chore(deps): update snok/container-retention-policy action to v3 #627
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.1.2
->v3.0.0
Release Notes
snok/container-retention-policy (snok/container-retention-policy)
v3.0.0
Compare Source
v3.0.0
This release is a complete rewrite of the action, tackling most if not all open issues in the issue tracker. Some of the highlights include:
secrets.GITHUB_TOKEN
and Github app tokens)💥 There are a lot of breaking changes, so we've included a migration guide at the bottom of this post, to make things a bit simpler.
Since the release introduces a few thousand lines of code, we expect there may be a few things left to iron out. If you run into any problems, please share them in the v3 release issue.
In addition to what's mentioned above, other new features and changes include:
BSD-3
toMIT
.image-names
andimage-tags
previously allowed wildcards (using the*
character). We now also allow the?
character to express a single-character wildcard. For example, the patternca?
will matchcar
andcat
. See the wildmatch docs for details.In addition to changing the inputs of the action (more details below), there are a few other breaking changes:
v3
target for the action, justv3.0.0
and other exact versions. Mutable major version tags are generally hard to maintain and not much safer than tracking the main branch, so more precise tag tracking should reduce the likelihood of broken runs going forward. Paired with dependabot, upgrading should not be much harder than it has been.needs-assistance
output was deletedAnd in terms of performance improvements:
Migration guide
The
account-type
andorg-name
inputs have been replaced withaccount
, which should be set to the literal string "user" if you previously usedaccount-type: personal
and to the organization name otherwise:or
The
filter-tags
key has been renamed toimage-tags
The
token-type
input has been removed. If you previously usedtoken-type: github-token
, then you can now instead pass the secret value totoken
and have the type of token be auto-detected:In other words, we've consolidated
token-type
andtoken
into a single arg.The
skip-tags
input has been removed. If you previously usedskip-tags: latest
, you should now specify a negative glob pattern inimage-tags
.In other words, we've consolidated the two arguments, by adding support for the
!
operator, which means "not".The
filter-include-untagged
anduntagged-only
inputs were removed.filter-include-untagged
previously enabled you to opt-out of deleting untagged images, whileuntagged-only
would allow you to opt-out of deleting tagged images. This was a bit confusing, even for me.To make things simpler, these have been collapsed into one argument, called
tag-selection
which accepts the string valuestagged
,untagged
, orboth
.or
The
cut-off
input no longer accepts human-readable datetimes. Instead, it accepts the inputs listed here. For example:or
There is no longer timezone support built-into this option. All durations are relative to the current time, UTC.
The
keep-at-least
argument was renamedkeep-n-most-recent
to make clearer what it doesv2.2.1
Compare Source
What's Changed
New Contributors
Full Changelog: snok/container-retention-policy@v2...v2.2.1
v2.2.0
Compare Source
What's Changed
This new version of the action introduces a
token-type
input variable, which enables the use ofGITHUB_TOKEN
instead of a personal access token - by @Injabie3 in https://github.com/snok/container-retention-policy/pull/70New Contributors
Full Changelog: snok/container-retention-policy@v2...v2.2.0
v2.1.3
Compare Source
What's Changed
keep_at_least
parameter predictable by @yma-het in https://github.com/snok/container-retention-policy/pull/68New Contributors
Full Changelog: snok/container-retention-policy@v2...v2.1.3
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.