File tree Expand file tree Collapse file tree 8 files changed +134
-21
lines changed Expand file tree Collapse file tree 8 files changed +134
-21
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Trigger - Test extra build
3
+
4
+ on :
5
+ workflow_call :
6
+
7
+ permissions :
8
+ contents : read
9
+ packages : read
10
+ # To report GitHub Actions status checks
11
+ statuses : write
12
+
13
+ jobs :
14
+ extra :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ # No-op job to trigger workflow 'extra.yml' via workflow_run
18
+ - uses : jakejarvis/wait-action@master
19
+ with :
20
+ time : ' 1s'
Original file line number Diff line number Diff line change 7
7
name : Test extra build
8
8
on :
9
9
workflow_dispatch :
10
+ # workflow_run:
11
+ # workflows: ["Trigger - Test extra build"]
12
+ # types: [completed,requested]
10
13
workflow_run :
11
- workflows : ["extra "]
12
- types :
13
- - completed
14
+ workflows : ["Test on push and pull request "]
15
+ # types: [completed,requested]
16
+ types : [ completed]
14
17
15
18
permissions :
16
19
contents : read
@@ -19,6 +22,12 @@ permissions:
19
22
statuses : write
20
23
21
24
jobs :
25
+ test :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - run : echo "event name is:" ${{ github.event_name }}
29
+ - run : echo "event type is:" ${{ github.event.action }}
30
+
22
31
doca :
23
32
name : extra-build
24
33
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -127,29 +127,29 @@ jobs:
127
127
needs : files_changed
128
128
if : |
129
129
needs.files_changed.outputs.stackhpc == 'true'
130
- runs-on : ubuntu-latest
131
- steps :
132
- # No-op job to trigger workflow 'stackhpc.yml' via workflow_run
133
- - uses : mattdesl/no-op@32ec85ff176f761f607087006bda993440da5fe4
130
+ # uses: ./.github/workflows/stackhpc-trigger.yml
131
+ uses : jakejarvis/wait-action@master
132
+ with :
133
+ time : ' 1s '
134
134
135
135
extra :
136
136
name : Test extra build
137
137
needs : files_changed
138
138
if : |
139
139
github.event_name != 'pull_request' && needs.files_changed.outputs.extra_on_push == 'true' ||
140
140
github.event_name == 'pull_request' && needs.files_changed.outputs.extra_on_pull_request == 'true'
141
- runs-on : ubuntu-latest
142
- steps :
143
- # No-op job to trigger workflow 'extra.yml' via workflow_run
144
- - uses : mattdesl/no-op@32ec85ff176f761f607087006bda993440da5fe4
141
+ # uses: ./.github/workflows/extra-trigger.yml
142
+ uses : jakejarvis/wait-action@master
143
+ with :
144
+ time : ' 1s '
145
145
146
146
trivyscan :
147
147
name : Trivy scan image for vulnerabilities
148
148
needs : files_changed
149
149
if : |
150
150
github.event_name == 'pull_request' &&
151
151
needs.files_changed.outputs.trivyscan == 'true'
152
- runs-on : ubuntu-latest
153
- steps :
154
- # No-op job to trigger workflow 'trivyscan.yml' via workflow_run
155
- - uses : mattdesl/no-op@32ec85ff176f761f607087006bda993440da5fe4
152
+ # uses: ./.github/workflows/trivyscan-trigger.yml
153
+ uses : jakejarvis/wait-action@master
154
+ with :
155
+ time : ' 1s '
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Trigger - Test deployment and reimage on OpenStack
3
+
4
+ on :
5
+ workflow_call :
6
+
7
+ permissions :
8
+ contents : read
9
+ packages : read
10
+ # To report GitHub Actions status checks
11
+ statuses : write
12
+
13
+ jobs :
14
+ stackhpc :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ # No-op job to trigger workflow 'stackhpc.yml' via workflow_run
18
+ - uses : jakejarvis/wait-action@master
19
+ with :
20
+ time : ' 1s'
Original file line number Diff line number Diff line change 7
7
name : Test deployment and reimage on OpenStack
8
8
on :
9
9
workflow_dispatch :
10
+ # workflow_run:
11
+ # workflows: ["Trigger - Test deployment and reimage on OpenStack"]
12
+ # types: [completed,requested]
10
13
workflow_run :
11
- workflows : ["stackhpc "]
12
- types :
13
- - completed
14
+ workflows : ["Test on push and pull request "]
15
+ # types: [completed,requested]
16
+ types : [ completed]
14
17
15
18
permissions :
16
19
contents : read
@@ -19,6 +22,12 @@ permissions:
19
22
statuses : write
20
23
21
24
jobs :
25
+ test :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - run : echo "event name is:" ${{ github.event_name }}
29
+ - run : echo "event type is:" ${{ github.event.action }}
30
+
22
31
openstack :
23
32
name : openstack-ci
24
33
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Test
3
+
4
+ # This is a test workflow to see if we can introduce a new workflow (outside of the default branch)
5
+ # and have it trigger from the main CI.
6
+ # If it triggers, what will github.event_name be set to?
7
+ # Ideally we want to know whether we've triggered downstream from a push or a pull request.
8
+
9
+ on :
10
+ workflow_call :
11
+ workflow_run :
12
+ workflows : ["Test on push and pull request"]
13
+ types : [completed,requested]
14
+
15
+ permissions :
16
+ contents : read
17
+ packages : read
18
+ # To report GitHub Actions status checks
19
+ statuses : write
20
+
21
+ jobs :
22
+ test :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - run : echo "event name is:" ${{ github.event_name }}
26
+ - run : echo "event type is:" ${{ github.event.action }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Trigger - Trivy scan image for vulnerabilities
3
+
4
+ on :
5
+ workflow_call :
6
+
7
+ permissions :
8
+ contents : read
9
+ packages : read
10
+ # To report GitHub Actions status checks
11
+ statuses : write
12
+
13
+ jobs :
14
+ trivyscan :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ # No-op job to trigger workflow 'trivyscan.yml' via workflow_run
18
+ - uses : jakejarvis/wait-action@master
19
+ with :
20
+ time : ' 1s'
Original file line number Diff line number Diff line change 7
7
name : Trivy scan image for vulnerabilities
8
8
on :
9
9
workflow_dispatch :
10
+ # workflow_run:
11
+ # workflows: ["Trigger - Trivy scan image for vulnerabilities"]
12
+ # types: [completed,requested]
10
13
workflow_run :
11
- workflows : ["trivyscan "]
12
- types :
13
- - completed
14
+ workflows : ["Test on push and pull request "]
15
+ # types: [completed,requested]
16
+ types : [ completed]
14
17
15
18
permissions :
16
19
contents : read
@@ -19,6 +22,12 @@ permissions:
19
22
statuses : write
20
23
21
24
jobs :
25
+ test :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - run : echo "event name is:" ${{ github.event_name }}
29
+ - run : echo "event type is:" ${{ github.event.action }}
30
+
22
31
scan :
23
32
runs-on : ubuntu-latest
24
33
strategy :
You can’t perform that action at this time.
0 commit comments