-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add on-demand execution on windows (#9138)
Test should execute on `main` branch or in PRs if `/windows-test` is added in comments.
- Loading branch information
1 parent
a85d57a
commit c1f4796
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: windows-test command dispatch | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
windows-test-command-trigger: | ||
permissions: | ||
pull-requests: write # for peter-evans/slash-command-dispatch to create PR reaction | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Trigger windows-test command | ||
uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0 | ||
with: | ||
token: ${{ secrets.WINDOWS_WORKERS_TOKEN }} | ||
# The command to trigger the pipeline: e.g. /windows-test | ||
# The command name must match the name of the repository_dispatch.type in 'ci-windows.yml' workflow, using '-command' as suffix. E.g. 'windows-test-command' | ||
commands: windows-test | ||
issue-type: pull-request | ||
# The user that owns the above token must belong to the elevated role of 'Maintainers' | ||
permission: maintain | ||
reactions: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters