Skip to content

Commit 11ac95d

Browse files
committed
ci: add cross-org CI dispatch to paid org runners
1 parent 0c71f0c commit 11ac95d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/dispatch-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dispatch CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
dispatch:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Trigger CI in paid org
19+
uses: peter-evans/repository-dispatch@v3
20+
with:
21+
token: ${{ secrets.PAID_ORG_PAT }}
22+
repository: localstack/azure-samples-ci
23+
event-type: run-ci
24+
client-payload: >-
25+
{
26+
"sha": "${{ github.event.pull_request.head.sha || github.sha }}",
27+
"ref": "${{ github.head_ref || github.ref_name }}",
28+
"pr_number": "${{ github.event.pull_request.number || '' }}",
29+
"repo": "${{ github.repository }}",
30+
"run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
31+
}

0 commit comments

Comments
 (0)