From 9976972f4bdba5862368f5fc28be5e17f0839acd Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Mon, 29 Apr 2024 15:40:30 +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 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-freeze-new.yml b/.github/workflows/code-freeze-new.yml index b2bf04d27..12c6c25e0 100644 --- a/.github/workflows/code-freeze-new.yml +++ b/.github/workflows/code-freeze-new.yml @@ -32,9 +32,17 @@ jobs: with: branch-regex: "^ma.*er$" - codefreeze_if_branch_match: + codefreeze_if_branch_match_print: + runs-on: ubuntu-latest needs: codefreeze_branch_check - uses: adoptium/.github/.github/workflows/code-freeze.yml@main - if: (github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)) && needs.codefreeze_branch_check.outputs.regex-matches == 'true' - secrets: inherit + run: | + echo "MATCH ? $MATCHES" + env: + MATCHES: ${{ needs.codefreeze_branch_check.outputs.regex-matches }} + + #codefreeze_if_branch_match: + # needs: codefreeze_branch_check + # uses: adoptium/.github/.github/workflows/code-freeze.yml@main + # if: (github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)) && needs.codefreeze_branch_check.outputs.regex-matches == 'true' + # secrets: inherit