Skip to content

Commit

Permalink
🧪 Integrate a unified alls-green GHA status
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jan 24, 2025
1 parent cebc64f commit e0449d2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,28 @@ on: # yamllint disable-line rule:truthy
jobs:
smoke-test:
uses: ./.github/workflows/reusable-smoke-test.yml

check: # This job does nothing and is only used for the branch protection
if: always()

needs:
- smoke-test

runs-on: ubuntu-latest

timeout-minutes: 1

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

build-and-push:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
needs:
- smoke-test
- check
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e0449d2

Please sign in to comment.