diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index 271de1e..06179b1 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -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