Skip to content

Commit 738ffd6

Browse files
authored
Update cd.yml
1 parent 00f56ab commit 738ffd6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Deploy to GCP
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["ci"] # CI 워크플로우 이름
6+
types:
7+
- completed
58
branches:
69
- main
7-
paths-ignore:
8-
- '.github/workflows/**'
910

1011
jobs:
1112
deploy:
13+
if: >
14+
${{ github.event.workflow_run.event == 'pull_request' &&
15+
github.event.workflow_run.conclusion == 'success' }}
1216
runs-on: ubuntu-latest
1317
permissions:
1418
id-token: write

0 commit comments

Comments
 (0)