Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci-windows-trigger.yml
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
4 changes: 3 additions & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ on:
- 'README.md'
- 'RELEASING.md'
- '.sdkmanrc'
repository_dispatch:
types: [windows-test-command]

concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.sha }}"
Expand All @@ -42,7 +44,7 @@ permissions:

jobs:
core:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.client_payload.slash_command.command == 'windows-test' }}
runs-on: self-hosted
permissions:
checks: write
Expand Down