Skip to content

Commit b29f846

Browse files
committed
Tweak github action used to detect changed paths on push/pull request
1 parent c046991 commit b29f846

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- '.github/workflows/extra.yml'
6464
stackhpc:
6565
- 'dev/setup-env.sh'
66-
- '.github/workflows/stackhpc'
66+
- '.github/workflows/stackhpc.yml'
6767
trivvyscan:
6868
- 'environments/.stackhpc/tofu/cluster_image.auto.tfvars.json'
6969
@@ -110,27 +110,29 @@ jobs:
110110
github.event_name != 'pull_request' && needs.files_changed.outputs.extra_on_push == 'true' ||
111111
github.event_name == 'pull_request' && needs.files_changed.outputs.extra_on_pull_request == 'true'
112112
#uses: ./.github/workflows/extra.yml
113-
steps: # TEST
113+
#secrets: inherit
114+
# TEST - remove from here and uncomment the above two lines
115+
steps:
114116
- name: Test extra build...
115117
uses: jakejarvis/wait-action@master
116118
with:
117119
time: '120s'
118-
runs-on: ubuntu-latest # TEST
119-
#secrets: inherit
120+
runs-on: ubuntu-latest
120121

121122
stackhpc:
122123
name: Test deployment and reimage on OpenStack
123124
needs: files_changed
124125
if: |
125126
needs.files_changed.outputs.stackhpc == 'true'
126127
#uses: ./.github/workflows/stackhpc.yml
127-
steps: # TEST
128+
#secrets: inherit
129+
# TEST - remove from here and uncomment the above two lines
130+
steps:
128131
- name: Test deployment and reimage on OpenStack...
129132
uses: jakejarvis/wait-action@master
130133
with:
131134
time: '120s'
132-
runs-on: ubuntu-latest # TEST
133-
#secrets: inherit
135+
runs-on: ubuntu-latest
134136

135137
trivvyscan:
136138
name: Trivy scan image for vulnerabilities
@@ -139,10 +141,11 @@ jobs:
139141
github.event_name == 'pull_request' &&
140142
needs.files_changed.outputs.trivvyscan == 'true'
141143
#uses: ./.github/workflows/trivvyscan.yml
142-
steps: # TEST
144+
#secrets: inherit
145+
# TEST - remove from here and uncomment the above two lines
146+
steps:
143147
- name: Trivy scan image for vulnerabilities...
144148
uses: jakejarvis/wait-action@master
145149
with:
146150
time: '120s'
147-
runs-on: ubuntu-latest # TEST
148-
#secrets: inherit
151+
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)