From b92da0343101232187813732fabf30436c79f66c Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Fri, 26 Apr 2024 15:20:08 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/code-freeze-new.yml b/.github/workflows/code-freeze-new.yml index 7dd16104f..387a58370 100644 --- a/.github/workflows/code-freeze-new.yml +++ b/.github/workflows/code-freeze-new.yml @@ -30,6 +30,12 @@ jobs: codefreeze_new: runs-on: ubuntu-latest steps: + - name: Code Freeze Run + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 + with: + issue-number: ${{ github.event.issue.number }} + body: echo "CODE_FREEZE ${{ github.event.issue.number }}" + - name: Get pull request target branch if: github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request) id: get-pr-target-branch