From 6e03873a8e630a91c6207905024f854cd08e0bce Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 7 Oct 2023 17:35:06 -0300 Subject: [PATCH] Fix lots of bugs --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7f27898..135b37c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,5 +1,6 @@ when: branch: master + evaluate: 'not (CI_COMMIT_MESSAGE contains "Update sha256sum")' steps: build: @@ -10,7 +11,7 @@ steps: - git remote set-url origin "https://$${CBTOKEN}@git.slc.ar/slococo/calsais.git" - git config --local user.name "$(git log --format=%an | head -n 1)" - git config --local user.email "$(git log --format=%ae | head -n 1)" - - sed -i "s/^[A-Za-z0-9]\{64\}/$(sha256sum install.sh)/" README.md + - sed -i "s/^[A-Za-z0-9]\{64\}/$(sha256sum install.sh | cut -d' ' -f1)/" README.md - if [ -z "$(git status --porcelain)" ]; then exit 0; fi - git add README.md - git commit -m "Update sha256sum"