mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 23:56:09 -07:00
Fix substitution. Works with any strings (not as sed)
Less portable but tested with Busybox shell used in this image
This commit is contained in:
parent
79e1b1b20b
commit
c26a144ee1
|
@ -39,7 +39,7 @@ ls -la
|
|||
echo "Adding git commit"
|
||||
|
||||
ORIGIN_COMMIT="https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
|
||||
COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | sed "s/ORIGIN_COMMIT/$ORIGIN_COMMIT/g")
|
||||
COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}"
|
||||
|
||||
git add .
|
||||
git status
|
||||
|
|
Loading…
Reference in New Issue
Block a user