From 7d6d0719b2c9312e4c102e31097cdcc32112f9a8 Mon Sep 17 00:00:00 2001 From: Noel Jacob Date: Sat, 12 Jul 2025 22:46:41 +0200 Subject: [PATCH] Add workflow dispatch trigger --- .github/workflows/apbx.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/apbx.yaml b/.github/workflows/apbx.yaml index 9ae24d5ba3..bd941a7cd0 100644 --- a/.github/workflows/apbx.yaml +++ b/.github/workflows/apbx.yaml @@ -6,6 +6,13 @@ on: - "src/**" - "**/*.yaml" - "**/*.yml" + workflow_dispatch: + inputs: + branch: + description: 'Branch or ref to run workflow on' + required: true + default: 'main' + type: string env: SXSC_REPO: "https://github.com/Atlas-OS/sxsc" @@ -18,7 +25,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }} token: ${{ secrets.RUNNER_SECRET }} - name: Validate YAML files