Skip to content

Commit 23ec512

Browse files
committed
ci: run release only if terraform job passes
1 parent 68315dc commit 23ec512

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/validate_and_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
terraform:
99
name: 'Terraform'
10+
id: terraform
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: 'Checkout'
@@ -43,6 +44,7 @@ jobs:
4344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4445
release:
4546
if: github.event_name == 'push'
47+
needs: terraform
4648
runs-on: ubuntu-latest
4749

4850
steps:

0 commit comments

Comments
 (0)