Skip to content

Commit d29f3c6

Browse files
committed
Skip nonprod param to publish workflow
1 parent 65ea918 commit d29f3c6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ on:
77
description: 'CI workflow run ID to download artifacts from'
88
required: true
99
type: string
10+
skip_nonprod:
11+
description: 'Skip deployment to non-prod'
12+
required: false
13+
type: boolean
14+
default: false
1015

1116
jobs:
1217
publish-non-prod:
1318
runs-on: ubuntu-latest
19+
if: ${{ !inputs.skip_nonprod }}
1420

1521
steps:
1622
- name: Install tfx-cli
@@ -36,6 +42,7 @@ jobs:
3642
runs-on: ubuntu-latest
3743
needs: publish-non-prod
3844
environment: production
45+
if: ${{ always() && (needs.publish-non-prod.result == 'success' || needs.publish-non-prod.result == 'skipped') }}
3946

4047
steps:
4148
- name: Install tfx-cli

0 commit comments

Comments
 (0)