File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,27 @@ name: Flowzone
3
3
on :
4
4
pull_request :
5
5
types : [opened, synchronize, closed]
6
- branches :
7
- - " main"
8
- - " master"
6
+ branches : [main, master]
7
+ # allow external contributions to use secrets within trusted code
8
+ pull_request_target :
9
+ types : [opened, synchronize, closed]
10
+ branches : [main, master]
9
11
10
12
jobs :
11
13
flowzone :
12
14
name : Flowzone
13
15
uses : product-os/flowzone/.github/workflows/flowzone.yml@master
16
+ # prevent duplicate workflow executions for pull_request and pull_request_target
17
+ if : |
18
+ (
19
+ github.event.pull_request.head.repo.full_name == github.repository &&
20
+ github.event_name == 'pull_request'
21
+ ) || (
22
+ github.event.pull_request.head.repo.full_name != github.repository &&
23
+ github.event_name == 'pull_request_target'
24
+ )
25
+
26
+ # Workflows in the same org or enterprise can use the inherit keyword to pass secrets implicitly
14
27
secrets : inherit
15
28
with :
16
29
balena_slugs : balena_io_examples/balena-python-hello-world
You can’t perform that action at this time.
0 commit comments