Skip to content

Commit be04d7c

Browse files
committed
dummy workflow to make pull_request_review work for forks
1 parent 27f0657 commit be04d7c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/block-merge-if-not-approved.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Block merge if not approved
2-
on: [pull_request_review, pull_request_target]
2+
on:
3+
pull_request_target:
4+
workflow_run:
5+
workflows:
6+
- Dummy pull_request_review workflow
7+
types:
8+
- requested
39

410
jobs:
511
block_pr_if_not_approved:

.github/workflows/dummy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Dummy pull_request_review workflow
2+
3+
on: pull_request_review
4+
5+
jobs:
6+
dummy-workflow:
7+
runs-on: ubuntu-latest
8+
name: dummy workflow
9+
steps:
10+
- name: Explanation
11+
run: echo "this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests"

0 commit comments

Comments
 (0)