c la fatig
This commit is contained in:
parent
0a94a283eb
commit
82eca2f066
2 changed files with 8 additions and 6 deletions
7
.ci/lint_wrap.sh
Executable file
7
.ci/lint_wrap.sh
Executable 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"
|
|
@ -16,18 +16,13 @@ steps:
|
||||||
event: [pull_request]
|
event: [pull_request]
|
||||||
lint:
|
lint:
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
entrypoint: ["/bin/bash", "-c", "echo $CI_SCRIPT | base64 -d | /bin/bash -e"]
|
|
||||||
failure: ignore
|
|
||||||
commands:
|
commands:
|
||||||
- rm -rf output.txt
|
- rm -rf output.txt
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y curl
|
- 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
|
- 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
|
- chmod +x /usr/local/bin/docker-compose
|
||||||
- set -o pipefail
|
- bash .ci/lint_wrap.sh
|
||||||
- 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
|
|
||||||
comment_2:
|
comment_2:
|
||||||
image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
|
image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Add table
Reference in a new issue