You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run if [ "pull_request" = "workflow_dispatch" ]; then
if [ "pull_request" = "workflow_dispatch" ]; then
PR_NUMBER=""
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName)
else
PR_NUMBER="110"
BRANCH_NAME="fix/biomeaction"
fi
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
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
fi
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
shell: /usr/bin/bash -e {0}
env:
GITHUB_TOKEN: ***
No issue number found in branch name. Workflow will exit.
The text was updated successfully, but these errors were encountered:
Run if [ "pull_request" = "workflow_dispatch" ]; then
if [ "pull_request" = "workflow_dispatch" ]; then
PR_NUMBER=""
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName)
else
PR_NUMBER="110"
BRANCH_NAME="fix/biomeaction"
fi
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
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
fi
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
shell: /usr/bin/bash -e {0}
env:
GITHUB_TOKEN: ***
No issue number found in branch name. Workflow will exit.
The text was updated successfully, but these errors were encountered: