Skip to content

Commit 6c1b9df

Browse files
authored
ci: add workflow dispatch trigger
1 parent a7a9582 commit 6c1b9df

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/apbx.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- "src/**"
77
- "**/*.yaml"
88
- "**/*.yml"
9+
workflow_dispatch:
10+
inputs:
11+
branch:
12+
description: 'Branch or ref to run workflow on'
13+
required: true
14+
default: 'main'
15+
type: string
916

1017
env:
1118
SXSC_REPO: "https://github.com/Atlas-OS/sxsc"
@@ -18,7 +25,7 @@ jobs:
1825
- name: Checkout code
1926
uses: actions/checkout@v4
2027
with:
21-
ref: ${{ github.ref }}
28+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
2229
token: ${{ secrets.RUNNER_SECRET }}
2330

2431
- name: Validate YAML files

0 commit comments

Comments
 (0)