Skip to content

Commit

Permalink
BUG - Fix coverage workflow triggers (#1996)
Browse files Browse the repository at this point in the history
When trying to cut the release candidate for the theme, the
`check_coverage` workflow failed; however, this is not meant to run on
`release` type events.

This PR fixes the syntax so that `releases, schedules, and
workflow_call` type events are properly skipped.

Ref:
https://github.com/pydata/pydata-sphinx-theme/actions/runs/11104806255/job/30850177121
  • Loading branch information
trallard authored Sep 30, 2024
1 parent 126dd33 commit a4b3cb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
needs: run-pytest
runs-on: ubuntu-latest
# avoid running this on schedule, releases, or workflow_call
if: github.event.workflow_run.event != 'schedule' && github.event.workflow_run.event != 'release' && github.event.workflow_run.event != 'workflow_call'
if: github.event_name != 'schedule' && github.event_name != 'release' && github.event_name != 'workflow_call'
permissions:
contents: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"version": "v0.11.0",
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.11.0/"
}
]
]

0 comments on commit a4b3cb6

Please sign in to comment.