Skip to content
Merged
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
36 changes: 36 additions & 0 deletions .github/workflows/dispatch-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# =============================================================================
# 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:
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
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 }}
Loading