Skip to content

Commit 17cbfbd

Browse files
authored
Add workflow dispatch with OS input options
1 parent 4ed8c54 commit 17cbfbd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/blank.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
name: checker
22
on:
3+
workflow_dispatch:
4+
inputs:
5+
chosen-os:
6+
required: true
7+
type: choice
8+
options:
9+
- lowpower
10+
- ubuntu-22.04
311
push:
412
branches: ["main"]
513
pull_request:
614
branches: ["main"]
715

816
jobs:
917
unified_name_check:
10-
runs-on: ubuntu-22.04
18+
runs-on: ${{ github.event_name == 'workflow_dispatch' && inputs.runner_os || 'ubuntu-22.04' }}
1119
steps:
1220
- name: install luajit
1321
run: sudo apt-get install luajit -y

0 commit comments

Comments
 (0)