Skip to content

Commit

Permalink
fix: fix/update-release
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Feb 2, 2025
1 parent 60899d5 commit a77c312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ tasks:
PR_NUMBER=$(gh pr list | grep {{ .BRANCH }} | awk '{print $1}')
# Check if PR_NUMBER is a non-empty value (a number)
if [[ -n "$PR_NUMBER" && "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
echo "Closing PR #$PR_NUMBER..."
gh pr close "$PR_NUMBER"
if [[ -n "${PR_NUMBER}" && "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
echo "Closing PR #${PR_NUMBER}..."
gh pr close "${PR_NUMBER}"
else
echo "No matching PR found."
fi
Expand Down

0 comments on commit a77c312

Please sign in to comment.