mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2025-02-04 20:19:34 -05:00
🧪 Integrate a unified alls-green
GHA status
This commit is contained in:
parent
cebc64f283
commit
e0449d218c
1 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue