From 20bb569b3b21ccdb111355eb18bee0c02932b561 Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Fri, 26 Apr 2024 16:21:25 +0100 Subject: [PATCH] Update code freeze bot to check target PR branch correctly for issue_comment Signed-off-by: Andrew Leonard --- .github/workflows/code-freeze-new.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-freeze-new.yml b/.github/workflows/code-freeze-new.yml index 195c9566d..44e700059 100644 --- a/.github/workflows/code-freeze-new.yml +++ b/.github/workflows/code-freeze-new.yml @@ -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 }} @@ -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 }}