File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ # Enables manual triggering from the GitHub Actions UI with custom options
9+ workflow_dispatch :
10+ inputs :
11+ linux :
12+ description : " Linux"
13+ type : boolean
14+ default : true
15+ macos :
16+ description : " macOS"
17+ type : boolean
18+ default : false
19+ windows :
20+ description : " Windows"
21+ type : boolean
22+ default : false
23+ stylua :
24+ description : " StyLua"
25+ type : boolean
26+ default : false
27+ luacheck :
28+ description : " Luacheck"
29+ type : boolean
30+ default : false
31+ prettier :
32+ description : " Prettier"
33+ type : boolean
34+ default : false
35+ tests :
36+ description : " Tests"
37+ type : boolean
38+ default : false
39+
40+ jobs :
41+ ci :
42+ uses : BlueLua/.github/.github/workflows/ci.yml@main
43+ with :
44+ # Forward OS selections if triggered manually, otherwise use defaults for push/pr triggers
45+ linux : ${{ (github.event_name == 'workflow_dispatch' && inputs.linux == true) || (github.event_name != 'workflow_dispatch' && true) }}
46+ macos : ${{ (github.event_name == 'workflow_dispatch' && inputs.macos == true) || (github.event_name != 'workflow_dispatch' && false) }}
47+ windows : ${{ (github.event_name == 'workflow_dispatch' && inputs.windows == true) || (github.event_name != 'workflow_dispatch' && false) }}
48+
49+ # Forward manual force-run triggers, otherwise default to false on push/pr (allowing auto-triggering)
50+ stylua : ${{ (github.event_name == 'workflow_dispatch' && inputs.stylua == true) || false }}
51+ luacheck : ${{ (github.event_name == 'workflow_dispatch' && inputs.luacheck == true) || false }}
52+ prettier : ${{ (github.event_name == 'workflow_dispatch' && inputs.prettier == true) || false }}
53+ tests : ${{ (github.event_name == 'workflow_dispatch' && inputs.tests == true) || false }}
You can’t perform that action at this time.
0 commit comments