Skip to content

Commit

Permalink
Update code freeze bot to check target PR branch correctly for issue_…
Browse files Browse the repository at this point in the history
…comment

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Apr 26, 2024
1 parent d48042c commit 20bb569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/code-freeze-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
echo "Getting target branch"
TARGET_BRANCH="$(gh pr view "$PR_NUMBER" --repo "$REPOSITORY" --json baseRefName --jq '.baseRefName')"
echo "pr_target_branch=$TARGET_BRANCH" >> "$GITHUB_OUTPUT"
echo "br=$TARGET_BRANCH"
echo "PR target branch = $TARGET_BRANCH"
env:
REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.issue.number }}
Expand All @@ -60,6 +60,7 @@ jobs:
FREEZE_BRANCH='false'
fi
echo "code_freeze_branch=$FREEZE_BRANCH" >> "$GITHUB_OUTPUT"
echo "Is $PR_TARGET_BRANCH a code freeze branch? => $FREEZE_BRANCH"
env:
PR_TARGET_BRANCH: ${{ steps.get-pr-target-branch.outputs.pr_target_branch }}

Expand Down

0 comments on commit 20bb569

Please sign in to comment.