Skip to content

Commit f257e82

Browse files
committed
added comments
1 parent 11ac95d commit f257e82

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/dispatch-ci.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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+
# =============================================================================
18
name: Dispatch CI
29

310
on:
@@ -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

Comments
 (0)