Skip to content

Commit

Permalink
run jobs in workflows only if previous is a success!
Browse files Browse the repository at this point in the history
  • Loading branch information
shelajev committed Sep 24, 2024
1 parent 354638a commit a872636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: 'Deploy to Cloud Run'
name: 'deploy'

on:
workflow_run:
Expand All @@ -15,7 +15,7 @@ env:
jobs:
deploy:
runs-on: 'ubuntu-latest'

if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: 'read'
id-token: 'write'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
scout:
runs-on: ubuntu-latest

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:

# Login against a Docker registry except on PR
Expand Down

0 comments on commit a872636

Please sign in to comment.