|
16 | 16 | types:
|
17 | 17 | - labeled
|
18 | 18 | merge_group:
|
| 19 | + workflow_dispatch: |
19 | 20 |
|
20 | 21 | defaults:
|
21 | 22 | run:
|
@@ -49,13 +50,13 @@ jobs:
|
49 | 50 | run: echo "turbo_args=--force=true" >> "$GITHUB_OUTPUT"
|
50 | 51 |
|
51 | 52 | lint:
|
52 |
| - # This Job should run either on `merge_groups` or `push` events |
| 53 | + # This Job should run either on `merge_groups`, `push`, or `workflow_dispatch` events |
53 | 54 | # or `pull_request_target` event with a `labeled` action with a label named `github_actions:pull-request`
|
54 | 55 | # since we want to run lint checks against any changes on pull requests, or the final patch on merge groups
|
55 | 56 | # or if direct pushes happen to main (or when changes in general land on the `main` (default) branch)
|
56 | 57 | # Note that the reason why we run this on pushes against `main` is that on rare cases, maintainers might do direct pushes against `main`
|
57 | 58 | if: |
|
58 |
| - (github.event_name == 'push' || github.event_name == 'merge_group') || |
| 59 | + (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') || |
59 | 60 | (github.event_name == 'pull_request_target' &&
|
60 | 61 | github.event.label.name == 'github_actions:pull-request')
|
61 | 62 |
|
@@ -111,7 +112,7 @@ jobs:
|
111 | 112 | # the Pull Request comes from a Crowdin Branch, as we don't want to run ESLint and Prettier on Crowdin PRs
|
112 | 113 | # Note: Linting and Prettifying of files on Crowdin PRs is handled by the `translations-pr.yml` Workflow
|
113 | 114 | if: |
|
114 |
| - (github.event_name == 'push' || github.event_name == 'merge_group') || |
| 115 | + (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') || |
115 | 116 | (github.event_name == 'pull_request_target' &&
|
116 | 117 | github.event.pull_request.head.ref != 'chore/crowdin')
|
117 | 118 | # We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
|
@@ -140,12 +141,12 @@ jobs:
|
140 | 141 | key: cache-lint-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.turbo/cache/**') }}
|
141 | 142 |
|
142 | 143 | tests:
|
143 |
| - # This Job should run either on `merge_groups` or `push` events |
| 144 | + # This Job should run either on `merge_groups`, `push`, or `workflow_dispatch` events |
144 | 145 | # or `pull_request_target` event with a `labeled` action with a label named `github_actions:pull-request`
|
145 | 146 | # since we want to run lint checks against any changes on pull requests and on final patches against a pull request.
|
146 | 147 | # We don't need to execute the tests again on pushes against (`main`) as the merge group should already handle that
|
147 | 148 | if: |
|
148 |
| - (github.event_name == 'push' || github.event_name == 'merge_group') || |
| 149 | + (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') || |
149 | 150 | (github.event_name == 'pull_request_target' &&
|
150 | 151 | github.event.label.name == 'github_actions:pull-request')
|
151 | 152 |
|
@@ -197,7 +198,7 @@ jobs:
|
197 | 198 | # We only need to run Storybook Builds and Storybook Visual Regression Tests within Pull Requests that actually
|
198 | 199 | # introduce changes to the Storybook. Hence, we skip running these on Crowdin PRs and Dependabot PRs
|
199 | 200 | if: |
|
200 |
| - github.event_name == 'push' || |
| 201 | + github.event_name == 'push' || github.event_name == 'workflow_dispatch' || |
201 | 202 | (github.event_name == 'pull_request_target' &&
|
202 | 203 | startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
|
203 | 204 | github.event.pull_request.head.ref != 'chore/crowdin')
|
|
0 commit comments