From 6e94df089372a619c01ae2c2f666bf474f890911 Mon Sep 17 00:00:00 2001 From: Juan Jimenez <36929767+juanjimenezcasas@users.noreply.github.com> Date: Fri, 5 May 2023 20:44:36 +0200 Subject: [PATCH] Updated output due to it will be deprecated (#30) --- delete-old-branches | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/delete-old-branches b/delete-old-branches index 22d3cc3..a1579ea 100755 --- a/delete-old-branches +++ b/delete-old-branches @@ -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() { @@ -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