Skip to content

Commit 022c2a4

Browse files
authored
ci: modify CI workflow inputs and default values
Updated workflow_dispatch inputs and defaults in CI configuration.
1 parent 6cd5d3b commit 022c2a4

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,33 +27,51 @@ 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:
56+
package: "bluelua-${{ github.event.repository.name }}"
4457
run: |
4558
echo 'KERNEL=="event*", SUBSYSTEM=="input", MODE="0666"' | sudo tee /etc/udev/rules.d/99-evdev-test.rules
4659
sudo udevadm control --reload-rules
4760
sudo modprobe uinput || true
4861
sudo udevadm trigger --subsystem-match=input || true
4962
test -e /dev/uinput
5063
sudo chmod 666 /dev/uinput
51-
# Forward OS selections if triggered manually, otherwise use defaults for push/pr triggers
52-
linux: ${{ (github.event_name == 'workflow_dispatch' && inputs.linux == true) || (github.event_name != 'workflow_dispatch' && true) }}
53-
macos: ${{ (github.event_name == 'workflow_dispatch' && inputs.macos == true) || (github.event_name != 'workflow_dispatch' && false) }}
54-
windows: ${{ (github.event_name == 'workflow_dispatch' && inputs.windows == true) || (github.event_name != 'workflow_dispatch' && false) }}
5564
56-
# Forward manual force-run triggers, otherwise default to false on push/pr (allowing auto-triggering)
57-
stylua: ${{ (github.event_name == 'workflow_dispatch' && inputs.stylua == true) || false }}
58-
luacheck: ${{ (github.event_name == 'workflow_dispatch' && inputs.luacheck == true) || false }}
59-
prettier: ${{ (github.event_name == 'workflow_dispatch' && inputs.prettier == true) || false }}
60-
tests: ${{ (github.event_name == 'workflow_dispatch' && inputs.tests == true) || false }}
65+
linux: ${{ inputs.linux || github.event_name != 'workflow_dispatch' }}
66+
macos: ${{ inputs.macos || github.event_name != 'workflow_dispatch' }}
67+
windows: ${{ inputs.windows || github.event_name != 'workflow_dispatch' }}
68+
69+
stylua: ${{ inputs.stylua }}
70+
luacheck: ${{ inputs.luacheck }}
71+
markdownlint: ${{ inputs.markdownlint }}
72+
73+
tests: ${{ inputs.tests }}
74+
docs: ${{ inputs.docs }}
75+
76+
release-please: ${{ inputs.release-please }}
77+
luarocks-upload: ${{ inputs.luarocks-upload }}

0 commit comments

Comments
 (0)