Skip to content

Commit fac1235

Browse files
authored
[CI] Try to trigger workflow to block paths on PRs created by github actions and comments (#12688)
Update check-blocked paths GitHub Action workflow to add a mechanism to trigger this workflow in pull requests created by other GitHub Actions.
1 parent 92a9608 commit fac1235

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/block-paths.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: Block Changes
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
6-
check_suite:
7-
types: [completed]
6+
issue_comment:
7+
types: [created]
88

99
jobs:
1010
check-blocked-paths:
11+
if: ${{ github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == '/check-blocked-paths') }}
1112
name: Check for blocked path changes
1213
runs-on: ubuntu-latest
1314
steps:

0 commit comments

Comments
 (0)