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 ecea444 commit 3bc8765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-freeze-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
steps:
- name: print
run: |
echo "MATCH ? $MATCHES"
echo "MATCH ? $MATCHES LL ${{ needs.codefreeze_branch_check.outputs.regex-matches }}"
env:
MATCHES: ${{ needs.codefreeze_branch_check.outputs.regex-matches }}
MATCHES: ${{ needs.codefreeze_branch_check.outputs.regex-matches }}

#codefreeze_if_branch_match:
# needs: codefreeze_branch_check
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/code-freeze-regex-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
outputs:
regex-matches:
description: "Whether the pull request target branch matches the input branch-regex"
value: ${{ jobs.check-freeze-branch.outputs.code_freeze_branch }}
value: ${{ jobs.codefreeze_branch_check.outputs.regex-matches }}

permissions:
contents: write
Expand All @@ -33,6 +33,8 @@ permissions:
jobs:
codefreeze_branch_check:
runs-on: ubuntu-latest
outputs:
regex-matches: ${{ steps.check-freeze-branch.outputs.code_freeze_branch }}
steps:
- name: Get pull request target branch
if: github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)
Expand Down

0 comments on commit 3bc8765

Please sign in to comment.