c la fatig

This commit is contained in:
Mael G. 2025-01-06 23:19:41 +01:00
parent 0a94a283eb
commit 82eca2f066
2 changed files with 8 additions and 6 deletions
.ci
.woodpecker

7
.ci/lint_wrap.sh Executable file
View file

@ -0,0 +1,7 @@
set -o pipefail
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
echo "\`\`\`" > output.txt
grep 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt
echo $?
echo "\`\`\`" >> output.txt
echo "END"

View file

@ -16,18 +16,13 @@ steps:
event: [pull_request]
lint:
image: debian:stable
entrypoint: ["/bin/bash", "-c", "echo $CI_SCRIPT | base64 -d | /bin/bash -e"]
failure: ignore
commands:
- rm -rf output.txt
- apt-get update
- apt-get install -y curl
- curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- set -o pipefail
- sh .ci/lint.sh 2>&1 | tee output_tmp.txt
- echo "\`\`\`" > output.txt
- grep 'msg=' output.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' && echo "\`\`\`" >> output.txt
- bash .ci/lint_wrap.sh
comment_2:
image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
settings: