Skip to content

Commit ef94090

Browse files
ci: update pull request and main branch workflows
Updates the pull request workflow to include a deploy stage and modifies the main branch workflow by removing specific branch triggers. Refs: DTOSS-12318
1 parent 7202f3e commit ef94090

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
pull_request:
55

66
concurrency:
7-
group: cicd-${{ github.ref }}
7+
group: pr-${{ github.ref }}
88
cancel-in-progress: true
99

1010
permissions:
1111
contents: read
12+
id-token: write
1213
security-events: write
1314

1415
jobs:
@@ -20,3 +21,14 @@ jobs:
2021
needs: commit-stage
2122
uses: ./.github/workflows/stage-2-test.yaml
2223
secrets: inherit
24+
25+
deploy-stage:
26+
name: Deploy stage
27+
needs: [commit-stage, test-stage]
28+
permissions:
29+
id-token: write
30+
uses: ./.github/workflows/stage-4-deploy.yaml
31+
with:
32+
environments: '["review"]'
33+
commit_sha: ${{ github.event.pull_request.head.sha }}
34+
secrets: inherit

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- DTOSS-12318-*
87
tags:
98
- 'v*'
109
workflow_dispatch:

0 commit comments

Comments
 (0)