|
40 | 40 | test-portal-generator: |
41 | 41 | name: Test Portal Generator |
42 | 42 | needs: validate-tag |
43 | | - if: always() && (needs.validate-tag.result == 'success' || needs.validate-tag.result == 'skipped') |
| 43 | + if: "!cancelled() && (needs.validate-tag.result == 'success' || needs.validate-tag.result == 'skipped')" |
44 | 44 | runs-on: ubuntu-latest |
45 | 45 |
|
46 | 46 | steps: |
|
71 | 71 | generate-portal: |
72 | 72 | name: Generate Portal |
73 | 73 | needs: test-portal-generator |
| 74 | + if: "!cancelled() && needs.test-portal-generator.result == 'success'" |
74 | 75 | runs-on: ubuntu-latest |
75 | 76 |
|
76 | 77 | steps: |
@@ -101,6 +102,7 @@ jobs: |
101 | 102 | validate-specs: |
102 | 103 | name: Validate Specs |
103 | 104 | needs: generate-portal |
| 105 | + if: "!cancelled() && needs.generate-portal.result == 'success'" |
104 | 106 | runs-on: ubuntu-latest |
105 | 107 |
|
106 | 108 | steps: |
@@ -140,7 +142,7 @@ jobs: |
140 | 142 | needs: validate-specs |
141 | 143 | runs-on: ubuntu-latest |
142 | 144 | # Only run on master branch |
143 | | - if: github.ref == 'refs/heads/master' |
| 145 | + if: "!cancelled() && needs.validate-specs.result == 'success' && github.ref == 'refs/heads/master'" |
144 | 146 | environment: |
145 | 147 | name: test |
146 | 148 | url: https://test-dev-portal.mulesoft.com |
@@ -190,7 +192,7 @@ jobs: |
190 | 192 | needs: validate-specs |
191 | 193 | runs-on: ubuntu-latest |
192 | 194 | # Only run on poc/* branches |
193 | | - if: startsWith(github.ref, 'refs/heads/poc/') |
| 195 | + if: "!cancelled() && needs.validate-specs.result == 'success' && startsWith(github.ref, 'refs/heads/poc/')" |
194 | 196 | environment: |
195 | 197 | name: poc |
196 | 198 |
|
@@ -253,7 +255,7 @@ jobs: |
253 | 255 | needs: validate-specs |
254 | 256 | runs-on: ubuntu-latest |
255 | 257 | # Only run against a release tag (vX.Y.Z), dispatched manually via workflow_dispatch |
256 | | - if: startsWith(github.ref, 'refs/tags/') |
| 258 | + if: "!cancelled() && needs.validate-specs.result == 'success' && startsWith(github.ref, 'refs/tags/')" |
257 | 259 | environment: |
258 | 260 | name: production |
259 | 261 | url: https://dev-portal.mulesoft.com |
|
0 commit comments