Skip to content

Commit 8e27b7f

Browse files
[BRE-534] Update the CD workflow to not run in a loop (#47)
1 parent 311a3b6 commit 8e27b7f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/cd.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
name: CD
22

33
on:
4-
push:
4+
pull_request:
5+
types:
6+
- closed
57
branches:
6-
- main
7-
paths:
8-
- "src/**"
8+
- 'main'
99
workflow_dispatch:
1010

1111

1212
jobs:
1313
version-type:
1414
name: Get version type
15-
if: github.actor != 'bitwarden-devops-bot'
15+
if: github.event.pull_request.merged == true
1616
uses: ./.github/workflows/_version_type.yml
1717

1818
version-bump:
1919
name: Version bump
20-
if: github.actor != 'bitwarden-devops-bot'
2120
runs-on: ubuntu-24.04
2221
needs: version-type
2322
outputs:
@@ -94,7 +93,6 @@ jobs:
9493
9594
release:
9695
name: GitHub release
97-
if: github.actor != 'bitwarden-devops-bot'
9896
runs-on: ubuntu-22.04
9997
needs: version-bump
10098
steps:
@@ -112,7 +110,6 @@ jobs:
112110

113111
deploy:
114112
name: Deploy workflow-linter (v2)
115-
if: github.actor != 'bitwarden-devops-bot'
116113
runs-on: ubuntu-22.04
117114
needs: version-bump
118115
steps:

0 commit comments

Comments
 (0)