Skip to content

Commit

Permalink
fix workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed Feb 22, 2024
1 parent d294c0d commit b357cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ jobs:
# ----------------------------------------------------------------------------------

- name: Patch Cargo.toml for pre-release
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
# After patching the pre-release version, run cargo check.
# This updates the cargo.lock file with the new version numbers and keeps the wheel build from failing
run: |
python3 scripts/version_util.py --patch_prerelease
cargo check
- name: Version check for tagged-release
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && && github.event_name != 'workflow_dispatch'
# This call to version_util.py will assert version from Cargo.toml matches git tagged version vX.Y.Z
run: |
python3 scripts/version_util.py --check_version
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
pre-release:
name: Pre Release
needs: [wheels]
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
runs-on: "ubuntu-latest"
steps:
- name: Download Artifact
Expand Down

0 comments on commit b357cea

Please sign in to comment.