Skip to content

Commit

Permalink
Ensure items are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Feb 23, 2022
1 parent cd6b0c7 commit bafaaa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ runs:
###
### All newline separated refs
### All newline separated refs (and make unique in case of duplicated tags)
###
REFS="$( printf "%s\n%s\n%s\n" "${BRANCHES}" "${TAGS}" "${LATEST_TAGS}" | grep -Ev '^$' )"
REFS="$( printf "%s\n%s\n%s\n" "${BRANCHES}" "${TAGS}" "${LATEST_TAGS}" | grep -Ev '^$' | sort -u )"
echo "REFS:"
echo "${REFS}"
Expand Down

0 comments on commit bafaaa6

Please sign in to comment.