Skip to content

Commit

Permalink
Updated output due to it will be deprecated (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjimenezcasas authored May 5, 2023
1 parent 333a962 commit 6e94df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delete-old-branches
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ EXCLUDE_BRANCH_REGEX=${INPUT_EXTRA_PROTECTED_BRANCH_REGEX:-^$}
EXCLUDE_TAG_REGEX=${INPUT_EXTRA_PROTECTED_TAG_REGEX:-^$}
EXCLUDE_OPEN_PR_BRANCHES=${INPUT_EXCLUDE_OPEN_PR_BRANCHES:-true}

echo "::set-output name=was_dry_run::${DRY_RUN}"
echo "was_dry_run=${DRY_RUN}" >> $GITHUB_OUTPUT
deleted_branches=()

default_branch_protected() {
Expand Down Expand Up @@ -117,7 +117,7 @@ main() {
delete_branch_or_tag "${br}" "heads" "${sha}"
fi
done
echo "::set-output name=deleted_branches::" "${deleted_branches[@]}"
echo "deleted_branches=${deleted_branches[@]}" >> $GITHUB_OUTPUT
if [[ "${DELETE_TAGS}" == true ]]; then
local tag_counter=1
for br in $(git ls-remote -q --tags --refs | sed "s@^.*tags/@@" | sort -rn); do
Expand Down

0 comments on commit 6e94df0

Please sign in to comment.