Skip to content

Commit

Permalink
try cross-workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpops authored Apr 26, 2023
1 parent 9fb94c7 commit b6f7fdd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ on:
push:
branches:
- main
tags:
- "v*"
workflow_run:
workflows:
- "Run Tests"
branches:
- main
types:
- completed

jobs:
tests:
uses: ./.github/workflows/test.yaml
debug:
runs-on: ubuntu-latest
steps:
Expand All @@ -23,7 +26,8 @@ jobs:
run: echo "$GITHUB_CONTEXT"
pypi-publish:
name: Upload release to PyPI
needs: [tests] # require tests to pass before deploy runs
#needs: [tests] # require tests to pass before deploy runs
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit b6f7fdd

Please sign in to comment.