5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-03 23:07:05 +00:00

ci: no fallar si no hay archivos

This commit is contained in:
f 2024-01-08 18:43:12 -03:00
parent 1dfd76704f
commit aa0aac20e6
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -76,7 +76,7 @@ rubocop:
- *apk-add
- *disable-hainish
script:
- "./bin/modified_files | grep .rb | xargs -r go-task bundle -- exec rubocop"
- "./bin/modified_files | ./bin/with_extension rb | xargs -r go-task bundle -- exec rubocop"
haml:
stage: "test"
cache:
@ -87,4 +87,4 @@ haml:
- *apk-add
- *disable-hainish
script:
- "./bin/modified_files | grep .haml | xargs -r go-task bundle -- exec haml-lint"
- "./bin/modified_files | ./bin/with_extension haml | xargs -r go-task bundle -- exec haml-lint"

4
bin/with_extension Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
grep "\.${1}$"
exit 0