ci(lint): fix when_path
ci/woodpecker/push/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-08-13 03:10:11 +02:00
parent d4bbc7bb12
commit 48c1a6df85
1 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
variables:
- &when_path
- ".woodpecker/lint.yml"
- "**/*.lua"
pipeline:
lint:
image: ghcr.io/lunarmodules/luacheck:v0.26.1
@ -6,8 +11,7 @@ pipeline:
- apk add just
- just check-lua
when:
path:
include: [".woodpecker/lint.yml", "*.lua"]
path: *when_path
style:
image: alpine:edge # Stylua is only available on edge repository for now
@ -16,5 +20,4 @@ pipeline:
- apk add just stylua
- just check-format
when:
path:
include: [".woodpecker/lint.yml", "*.lua"]
path: *when_path