Use perl in woodpecker plugin
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Santiago Lo Coco 2023-10-07 17:19:47 -03:00
parent ae83c1ece1
commit 059e64f39e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ steps:
- git config --local user.name "$(git log --format=%an | head -n 1)"
- git config --local user.email "$(git log --format=%ae | head -n 1)"
- shasum=$(sha256sum install.sh)
- oldShasum=$(grep -oP "^[[:alnum:]]{64}" README.md)
- oldShasum=$(perl -ne 'print if /^[[:alnum:]]{64}/' README.md)
- if ! [ "$shasum" = "$oldShasum" ]; then sed -i "s/$oldShasum/$shasum/" README.md; fi
- if [ -z "$(git status --porcelain)" ]; then exit 0; fi
- git add README.md