We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05ad645 commit da1fd4eCopy full SHA for da1fd4e
.github/workflows/test.yml
@@ -4,10 +4,19 @@ on:
4
workflow_dispatch:
5
push:
6
branches: [main]
7
- pull_request:
+ pull_request_target:
8
9
+ types: [reopened, synchronize, opened]
10
11
jobs:
12
+ requires-approval:
13
+ runs-on: ubuntu-latest
14
+ name: "Waiting for PR approval as this workflow runs on pull_request_target"
15
+ if: github.event_name == 'pull_request_target' && github.event.pull_request.base.user.login != 'cap-js'
16
+ environment: pr-approval
17
+ steps:
18
+ - name: Approval Step
19
+ run: echo "This job has been approved!"
20
test:
21
runs-on: ubuntu-latest
22
timeout-minutes: 3
0 commit comments