Skip to content

Commit a4b3cb6

Browse files
authored
BUG - Fix coverage workflow triggers (#1996)
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
1 parent 126dd33 commit a4b3cb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
needs: run-pytest
177177
runs-on: ubuntu-latest
178178
# avoid running this on schedule, releases, or workflow_call
179-
if: github.event.workflow_run.event != 'schedule' && github.event.workflow_run.event != 'release' && github.event.workflow_run.event != 'workflow_call'
179+
if: github.event_name != 'schedule' && github.event_name != 'release' && github.event_name != 'workflow_call'
180180
permissions:
181181
contents: write
182182
pull-requests: write

docs/_static/switcher.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
"version": "v0.11.0",
3535
"url": "https://pydata-sphinx-theme.readthedocs.io/en/v0.11.0/"
3636
}
37-
]
37+
]

0 commit comments

Comments
 (0)