Skip to content

Commit 14cc583

Browse files
authored
ci: modify CI workflow dispatch inputs and defaults
Updated workflow_dispatch inputs for CI workflow, changing default values and adding new options.
1 parent 0bd50a1 commit 14cc583

1 file changed

Lines changed: 31 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8-
# Enables manual triggering from the GitHub Actions UI with custom options
98
workflow_dispatch:
109
inputs:
1110
linux:
1211
description: "Linux"
1312
type: boolean
14-
default: true
13+
default: false
1514
macos:
1615
description: "macOS"
1716
type: boolean
@@ -28,26 +27,44 @@ on:
2827
description: "Luacheck"
2928
type: boolean
3029
default: false
31-
prettier:
32-
description: "Prettier"
30+
markdownlint:
31+
description: "Markdownlint"
3332
type: boolean
3433
default: false
3534
tests:
3635
description: "Tests"
3736
type: boolean
3837
default: false
39-
38+
docs:
39+
description: "Docs"
40+
type: boolean
41+
default: false
42+
release-please:
43+
description: "Release Please"
44+
type: boolean
45+
default: false
46+
luarocks-upload:
47+
description: "Upload to LuaRocks"
48+
type: boolean
49+
default: false
4050
jobs:
4151
ci:
4252
uses: BlueLua/.github/.github/workflows/ci.yml@main
53+
secrets: inherit
54+
# prettier-ignore
4355
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) }}
56+
package: "bluelua-${{ github.event.repository.name }}"
57+
58+
linux: ${{ inputs.linux || github.event_name != 'workflow_dispatch' }}
59+
macos: ${{ inputs.macos || github.event_name != 'workflow_dispatch' }}
60+
windows: ${{ inputs.windows || github.event_name != 'workflow_dispatch' }}
61+
62+
stylua: ${{ inputs.stylua || false }}
63+
luacheck: ${{ inputs.luacheck || false }}
64+
markdownlint: ${{ inputs.markdownlint || false }}
65+
66+
tests: ${{ inputs.tests || false }}
67+
docs: ${{ inputs.docs || false }}
4868

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 }}
69+
release-please: ${{ inputs.release-please || false }}
70+
luarocks-upload: ${{ inputs.luarocks-upload || false }}

0 commit comments

Comments
 (0)