Skip to content

Commit afea9cb

Browse files
committed
DTOSS-10667 Fix the workflow attempt to deploy review apps when merged
1 parent b6388b8 commit afea9cb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/cicd-2-main-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ jobs:
8585
id-token: write
8686
uses: ./.github/workflows/stage-4-deploy.yaml
8787
with:
88-
environments: '["review","dev"]'
88+
environments: '["dev"]'
8989
commit_sha: ${{ github.sha }}
9090
secrets: inherit

.github/workflows/stage-4-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3939

4040
- name: Call deployment pipeline
41+
if: ${{ inputs.pr_number && inputs.pr_number != '' }}
4142
run: |
4243
echo "Starting Azure devops pipeline \"Deploy to Azure - ${{ matrix.environment }}\"..."
4344
RUN_ID=$(az pipelines run \

0 commit comments

Comments
 (0)