Skip to content

Commit

Permalink
Publish when pushing on main branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
kplattret committed Dec 8, 2023
1 parent 90e1d85 commit a7ec69d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
publish:
runs-on: ubuntu-latest
# if: ${{ github.ref == 'refs/heads/main' && needs.check_version.outputs.is_published == false }}
if: ${{ needs.check_version.outputs.is_published == false }}
# Runs only on the main branch and if the current version isn't already published
if: ${{ github.ref == 'refs/heads/main' && needs.check_version.outputs.is_published == false }}
needs: [lint_and_test, check_version]
env:
python-version: "3.10"
Expand Down

0 comments on commit a7ec69d

Please sign in to comment.