20
20
# Automated trigger for issue comment
21
21
issue_comment :
22
22
types : [created]
23
+ # Testing trigger for PRs - tests workflow changes
24
+ pull_request :
25
+ types : [opened, synchronize]
26
+ paths :
27
+ - ' .github/workflows/run-system-tests.yml'
28
+ - ' .github/workflows/system-tests.yml'
23
29
24
30
permissions :
25
31
contents : read
69
75
check-rights :
70
76
needs :
71
77
- parse-params
72
- if : ${{ needs.parse-params.outputs.shouldRun == 'true' }}
78
+ if : ${{ needs.parse-params.outputs.shouldRun == 'true' && github.event_name != 'pull_request' }}
73
79
runs-on : ubuntu-latest
74
80
permissions :
75
81
contents : read
99
105
- parse-params
100
106
- check-rights
101
107
# Run only if properly triggered, permissions check passed, and the run is not for release (already built images)
102
- if : ${{ needs.parse-params.outputs.shouldRun == 'true' && needs.check-rights.result == 'success' && needs.parse-params.outputs.releaseVersion == 'latest' }}
108
+ if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && ( needs.check-rights.result == 'success' || github.event_name == 'pull_request') && needs.parse-params.outputs.releaseVersion == 'latest' }}
103
109
runs-on : oracle-2cpu-8gb-arm64
104
110
steps :
105
111
- uses : actions/checkout@v5
@@ -117,7 +123,7 @@ jobs:
117
123
- check-rights
118
124
- build-artifacts
119
125
# Run only if properly triggered, permissions check passed, and the run is not for release (already built images)
120
- if : ${{ needs.parse-params.outputs.shouldRun == 'true' && needs.check-rights.result == 'success' && needs.parse-params.outputs.releaseVersion == 'latest' && needs.build-artifacts.result != 'failure'}}
126
+ if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && ( needs.check-rights.result == 'success' || github.event_name == 'pull_request') && needs.parse-params.outputs.releaseVersion == 'latest' && needs.build-artifacts.result != 'failure'}}
121
127
strategy :
122
128
matrix :
123
129
architecture : [amd64, arm64]
@@ -139,7 +145,7 @@ jobs:
139
145
- build-artifacts
140
146
- build-images
141
147
# Run if properly triggered, permissions check passed, and build jobs succeeded or were skipped
142
- if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && needs.check-rights.result == 'success' && needs.build-images.result != 'failure' && needs.build-artifacts.result != 'failure' }}
148
+ if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && ( needs.check-rights.result == 'success' || github.event_name == 'pull_request') && needs.build-images.result != 'failure' && needs.build-artifacts.result != 'failure' }}
143
149
# Job needs write rights for setting statuses on pull-requests
144
150
permissions :
145
151
contents : read
@@ -166,7 +172,7 @@ jobs:
166
172
- parse-params
167
173
- check-rights
168
174
- run-tests
169
- if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && needs.check-rights.result == 'success' }}
175
+ if : ${{ always() && needs.parse-params.outputs.shouldRun == 'true' && needs.check-rights.result == 'success' && github.event_name != 'pull_request' }}
170
176
runs-on : ubuntu-latest
171
177
permissions :
172
178
contents : read
0 commit comments