Skip to content

Commit 7ff65fe

Browse files
authored
Create caller.yml
1 parent 64b5b75 commit 7ff65fe

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/caller.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Caller Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- current
8+
- circinus
9+
- sagitta
10+
paths:
11+
- '**'
12+
- '!.github/**'
13+
- '!**/*.md'
14+
pull_request_target:
15+
branches:
16+
- current
17+
- circinus
18+
- sagitta
19+
paths:
20+
- '**'
21+
- '!.github/**'
22+
- '!**/*.md'
23+
24+
permissions:
25+
pull-requests: write
26+
contents: read
27+
28+
jobs:
29+
call-current:
30+
if: >
31+
(github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'current') ||
32+
(github.event_name != 'pull_request_target' && github.ref_name == 'current')
33+
uses: vyos/vyos-1x/.github/workflows/called.yml@current
34+
secrets: inherit
35+
36+
call-circinus:
37+
if: >
38+
(github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'circinus') ||
39+
(github.event_name != 'pull_request_target' && github.ref_name == 'circinus')
40+
uses: vyos/vyos-1x/.github/workflows/called.yml@current
41+
secrets: inherit
42+
43+
call-sagitta:
44+
if: >
45+
(github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'sagitta') ||
46+
(github.event_name != 'pull_request_target' && github.ref_name == 'sagitta')
47+
uses: vyos/vyos-1x/.github/workflows/called.yml@current
48+
secrets: inherit

0 commit comments

Comments
 (0)