Skip to content

Commit

Permalink
added additional check for old parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Frisch12 committed Apr 17, 2024
1 parent 337aec3 commit 5efd472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const run = async () => {

const filterOptions = {
keepTags: core.getMultilineInput('keep-tags'),
keepTagsRegexes: core.getInput('keep-tags-regexes') ? core.getMultilineInput('keep-tags-regexes') : [core.getInput('tag-regex-exclude')],
keepTagsRegexes: core.getInput('keep-tags-regexes') ? core.getMultilineInput('keep-tags-regexes') : (core.getInput('tag-regex-exclude') ? [core.getInput('tag-regex-exclude')] : null),
keepYoungerThan: Number(core.getInput('keep-younger-than')) || Number(core.getInput('older-than')),
pruneTagsRegexes: core.getInput('prune-tags-regexes') ? core.getMultilineInput('prune-tags-regexes') : legacyTagRegex,
pruneUntagged: asBoolean(core.getInput('prune-untagged')) || asBoolean(core.getInput('untagged')),
Expand Down

0 comments on commit 5efd472

Please sign in to comment.