From 11ac95d56f7b7788dfa49c408b35a0128e5a121b Mon Sep 17 00:00:00 2001 From: "Dris.S" Date: Thu, 12 Feb 2026 13:39:50 +0000 Subject: [PATCH 1/2] ci: add cross-org CI dispatch to paid org runners --- .github/workflows/dispatch-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dispatch-ci.yml diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml new file mode 100644 index 0000000..3aee4b0 --- /dev/null +++ b/.github/workflows/dispatch-ci.yml @@ -0,0 +1,31 @@ +name: Dispatch CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Trigger CI in paid org + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAID_ORG_PAT }} + repository: localstack/azure-samples-ci + event-type: run-ci + client-payload: >- + { + "sha": "${{ github.event.pull_request.head.sha || github.sha }}", + "ref": "${{ github.head_ref || github.ref_name }}", + "pr_number": "${{ github.event.pull_request.number || '' }}", + "repo": "${{ github.repository }}", + "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } \ No newline at end of file From f257e8236a17a488321bcf4f695699222f3467f4 Mon Sep 17 00:00:00 2001 From: "Dris.S" Date: Thu, 12 Feb 2026 14:01:46 +0000 Subject: [PATCH 2/2] added comments --- .github/workflows/dispatch-ci.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index 3aee4b0..845bfdd 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -1,3 +1,10 @@ +# ============================================================================= +# FILE: .github/workflows/dispatch-ci.yml +# REPO: localstack-samples/localstack-azure-samples (FREE org) +# +# Purpose: On every PR or manual trigger, dispatch a CI run to the paid org +# where advanced runners are available. +# ============================================================================= name: Dispatch CI on: @@ -16,16 +23,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger CI in paid org - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.PAID_ORG_PAT }} - repository: localstack/azure-samples-ci - event-type: run-ci - client-payload: >- - { - "sha": "${{ github.event.pull_request.head.sha || github.sha }}", - "ref": "${{ github.head_ref || github.ref_name }}", - "pr_number": "${{ github.event.pull_request.number || '' }}", - "repo": "${{ github.repository }}", - "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - } \ No newline at end of file + run: | + gh workflow run run-samples.yml \ + --repo localstack/azure-samples-ci \ + --ref main \ + --field sha="${{ github.event.pull_request.head.sha || github.sha }}" \ + --field ref="${{ github.head_ref || github.ref_name }}" \ + --field pr_number="${{ github.event.pull_request.number || '' }}" \ + --field repo="${{ github.repository }}" \ + --field run_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + env: + GH_TOKEN: ${{ secrets.PAID_ORG_PAT }}