Skip to content

Commit

Permalink
Hopefully fix up trigger events
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed May 7, 2024
1 parent d10879c commit ce00fc0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ jobs:
cron:
if: |
github.event_name == 'workflow_dispatch' || (
(
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule'
) || (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run cron CI')
)
Expand All @@ -104,15 +107,11 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish:
# Build wheels when pushing to any branch except main
# Build wheels when on a branch or when label is set
# publish.yml will only publish if tagged ^v.*
if: |
(
github.event_name != 'pull_request' && (
github.ref_name != 'main' ||
github.event_name == 'workflow_dispatch'
)
) || (
github.event_name != 'pull_request'
|| (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
Expand Down

0 comments on commit ce00fc0

Please sign in to comment.