Skip to content

Commit ff7f3ca

Browse files
Fixed master merge deploy to test (#208)
1 parent 16d455d commit ff7f3ca

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
test-portal-generator:
4141
name: Test Portal Generator
4242
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')"
4444
runs-on: ubuntu-latest
4545

4646
steps:
@@ -71,6 +71,7 @@ jobs:
7171
generate-portal:
7272
name: Generate Portal
7373
needs: test-portal-generator
74+
if: "!cancelled() && needs.test-portal-generator.result == 'success'"
7475
runs-on: ubuntu-latest
7576

7677
steps:
@@ -101,6 +102,7 @@ jobs:
101102
validate-specs:
102103
name: Validate Specs
103104
needs: generate-portal
105+
if: "!cancelled() && needs.generate-portal.result == 'success'"
104106
runs-on: ubuntu-latest
105107

106108
steps:
@@ -140,7 +142,7 @@ jobs:
140142
needs: validate-specs
141143
runs-on: ubuntu-latest
142144
# 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'"
144146
environment:
145147
name: test
146148
url: https://test-dev-portal.mulesoft.com
@@ -190,7 +192,7 @@ jobs:
190192
needs: validate-specs
191193
runs-on: ubuntu-latest
192194
# 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/')"
194196
environment:
195197
name: poc
196198

@@ -253,7 +255,7 @@ jobs:
253255
needs: validate-specs
254256
runs-on: ubuntu-latest
255257
# 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/')"
257259
environment:
258260
name: production
259261
url: https://dev-portal.mulesoft.com

0 commit comments

Comments
 (0)