Skip to content

Commit da1fd4e

Browse files
authored
update test action (#31)
1 parent 05ad645 commit da1fd4e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ on:
44
workflow_dispatch:
55
push:
66
branches: [main]
7-
pull_request:
7+
pull_request_target:
88
branches: [main]
9+
types: [reopened, synchronize, opened]
910

1011
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!"
1120
test:
1221
runs-on: ubuntu-latest
1322
timeout-minutes: 3

0 commit comments

Comments
 (0)