Use perl in woodpecker plugin
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
ae83c1ece1
commit
059e64f39e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue