ci(lint): fix `when` closes
This commit is contained in:
parent
fc94e3cc63
commit
55085ec94d
|
@ -1,3 +1,8 @@
|
|||
variables: &when
|
||||
when:
|
||||
path:
|
||||
include: [".woodpecker/lint.yml", "*.lua"]
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: ghcr.io/lunarmodules/luacheck:v0.26.1
|
||||
|
@ -5,14 +10,11 @@ pipeline:
|
|||
commands:
|
||||
- apk add just
|
||||
- just check-lua
|
||||
when: *when
|
||||
style:
|
||||
image: alpine:edge # Stylua is only available on edge repository for now
|
||||
group: lint
|
||||
commands:
|
||||
- apk add just stylua
|
||||
- just check-format
|
||||
|
||||
when:
|
||||
branch: master
|
||||
path:
|
||||
include: [ '.woodpecker/lint.yml', '*.lua' ]
|
||||
when: *when
|
||||
|
|
Loading…
Reference in New Issue