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 1dd231c commit 38011d9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/code-freeze-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ permissions:
pull-requests: write

jobs:
codefreeze_new:
codefreeze_regex:
runs-on: ubuntu-latest
steps:
- name: Code Freeze New
if: (github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)) && steps.check-freeze-branch.outputs.code_freeze_branch == 'true'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
- name: Code Freeze Regex Branch
uses: adoptium/andrew-m-leonard/.github/workflows/code-freeze-regex-branch.yml@master
with:
issue-number: ${{ github.event.issue.number }}
body: echo "IS CODE_FREEZE ${{ github.event.issue.number }}"
branch-regex: "^v[0-9]+.[0-9]+.[0-9]+$"

0 comments on commit 38011d9

Please sign in to comment.