Skip to content

Commit bcd226d

Browse files
DTOSS-12521: skip deploy stage on PRs without deploy label
Dependabot PRs do not have access to repository secrets by design, causing the deploy stage to fail on Azure login. Gate deploy-stage behind the deploy label, consistent with deploy-app-stage and the approach used in dtos-manage-breast-screening.
1 parent 73b643c commit bcd226d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
deploy-stage:
2828
name: Deploy stage
2929
needs: [commit-stage, test-stage]
30+
if: contains(github.event.pull_request.labels.*.name, 'deploy')
3031
permissions:
3132
id-token: write
3233
uses: ./.github/workflows/stage-4-deploy.yaml

0 commit comments

Comments
 (0)