Skip to content

Commit 562f1f1

Browse files
committed
cd: Fix broken workflow
1 parent 250eb03 commit 562f1f1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
- "prod"
1111

1212
jobs:
13-
deploy:
13+
prod_deploy:
1414
runs-on: ubuntu-latest
15-
if: github.event.workflow_run.conclusion == 'success'
15+
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'push'
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4

.github/workflows/test-deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ on:
88
push:
99
branches:
1010
- "prod"
11+
pull_request:
12+
branches:
13+
- "prod"
1114

1215
jobs:
1316
test_deploy:
1417
runs-on: ubuntu-latest
15-
if: github.event.workflow_run.conclusion == 'success'
18+
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'prod')
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v4
@@ -45,3 +48,4 @@ jobs:
4548
echo "Container has failed"
4649
exit 1
4750
fi
51+

0 commit comments

Comments
 (0)