Skip to content

Commit

Permalink
Refine workflow run contexts and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Mar 12, 2024
1 parent a28aa08 commit 984429f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
tags:
- "v*"
- "buildwheels*"
branches:
# Runs on every merge to master to upload .dev0 wheels to anaconda.org
- master
- v1.**
# Make it possible to upload wheels manually if needed
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -177,7 +181,8 @@ jobs:
build_macos_wheels,
build_windows_wheels,
]
if: github.repository_owner == 'PyWavelets' && startsWith(github.ref, 'refs/tags/v') && always()
# Run only on tags pushed to the repository
if: github.repository_owner == 'PyWavelets' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand Down Expand Up @@ -230,7 +235,7 @@ jobs:
build_macos_wheels,
build_windows_wheels,
]
# Only run on the master branch, on schedule, or when triggered manually
# Run only on pushes to the master branch, on schedule, or when triggered manually
if: >-
github.repository_owner == 'PyWavelets' &&
(github.event_name == 'push' && github.ref == 'refs/heads/master') ||
Expand Down

0 comments on commit 984429f

Please sign in to comment.