Skip to content

Commit

Permalink
fix: apply shellcheck recommandations (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Siavash Safi <[email protected]>
  • Loading branch information
nikaro and siavashs authored Oct 18, 2023
1 parent 3a54bdf commit 3dd3827
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions delete-old-branches
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ EXCLUDE_OPEN_PR_BRANCHES=${INPUT_EXCLUDE_OPEN_PR_BRANCHES:-true}
# used for GitHub CLI authentication
export GITHUB_TOKEN=${INPUT_REPO_TOKEN}

echo "was_dry_run=${DRY_RUN}" >> $GITHUB_OUTPUT
echo "was_dry_run=${DRY_RUN}" >> "$GITHUB_OUTPUT"

deleted_branches=()

default_branch_protected() {
Expand Down Expand Up @@ -115,7 +116,7 @@ main() {
delete_branch_or_tag "${br}" "heads" "${sha}"
fi
done
echo "deleted_branches=${deleted_branches[@]}" >> $GITHUB_OUTPUT
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 3dd3827

Please sign in to comment.