Skip to content

Commit fc78120

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 e1ff998 commit fc78120

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎.github/workflows/main.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
release:
1414
name: Release
1515
runs-on: ubuntu-latest
16-
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
1716
steps:
1817
- uses: actions/checkout@v7
1918
- uses: actions/setup-node@v6

0 commit comments

Comments
 (0)