Skip to content

Commit

Permalink
Skip publish jobs in release action if no packages need publishing (#501
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lukasIO authored Jul 24, 2024
1 parent 24e5a6d commit a227b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
build:
needs:
- bump
if: ${{ fromJson(needs.bump.outputs.packages)[0] != null }}
strategy:
matrix:
package: ${{ fromJson(needs.bump.outputs.packages) }}
Expand Down Expand Up @@ -115,7 +116,9 @@ jobs:
publish:
needs:
- build
- bump

if: ${{ fromJson(needs.bump.outputs.packages)[0] != null }}
runs-on: ubuntu-latest

steps:
Expand All @@ -132,6 +135,7 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

docs:
if: ${{ fromJson(needs.bump.outputs.packages)[0] != null }}
needs:
- bump
- publish
Expand Down

0 comments on commit a227b07

Please sign in to comment.