1+ # =============================================================================
2+ # FILE: .github/workflows/dispatch-ci.yml
3+ # REPO: localstack-samples/localstack-azure-samples (FREE org)
4+ #
5+ # Purpose: On every PR or manual trigger, dispatch a CI run to the paid org
6+ # where advanced runners are available.
7+ # =============================================================================
18name : Dispatch CI
29
310on :
@@ -16,16 +23,14 @@ jobs:
1623 runs-on : ubuntu-latest
1724 steps :
1825 - 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- }
26+ run : |
27+ gh workflow run run-samples.yml \
28+ --repo localstack/azure-samples-ci \
29+ --ref main \
30+ --field sha="${{ github.event.pull_request.head.sha || github.sha }}" \
31+ --field ref="${{ github.head_ref || github.ref_name }}" \
32+ --field pr_number="${{ github.event.pull_request.number || '' }}" \
33+ --field repo="${{ github.repository }}" \
34+ --field run_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
35+ env :
36+ GH_TOKEN : ${{ secrets.PAID_ORG_PAT }}
0 commit comments