Skip to content

Commit 0455854

Browse files
committed
refactor(ci): drop redundant if condition, use trigger filters
The release job had a broad `on.push` (no branch filter) plus an `if:` condition that checked `github.event_name`. This was redundant: the trigger already filters by branch (or by event type for repository_dispatch / workflow_dispatch), and the if condition just re-checked the event type. Simplify: keep the trigger filters, drop the if. Also ensure `repository_dispatch` is in the trigger list for repos that referenced it in their if condition.
1 parent 061fa17 commit 0455854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77
paths-ignore:
88
- "README.md"
9+
repository_dispatch:
910
workflow_dispatch:
1011

1112
jobs:
1213
release:
1314
name: Release
1415
runs-on: ubuntu-latest
15-
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
1616
steps:
1717
- uses: actions/checkout@v7
1818
- uses: actions/setup-node@v6

0 commit comments

Comments
 (0)