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 29, 2024
1 parent 6c0717d commit 9976972
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/code-freeze-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9976972

Please sign in to comment.