Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze committed Jul 27, 2024
1 parent 72d8efc commit 24119ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/link-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
id: extract-issue
run: |
BRANCH_NAME="${{ github.head_ref }}"
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+')
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true)
if [ -z "$ISSUE_NUMBER" ]; then
echo "No issue number found in branch name. Workflow will exit."
exit 0
Expand Down

0 comments on commit 24119ce

Please sign in to comment.