mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 08:06:10 -07:00
Fix variable substitution
This commit is contained in:
parent
cd04ca4f15
commit
18caea3525
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh -l
|
||||
|
||||
set -x
|
||||
set -e # if a command fails it stops the execution
|
||||
set -u # script fails if trying to access to an undefined variable
|
||||
|
||||
|
@ -126,8 +127,10 @@ echo "[+] Files that will be pushed"
|
|||
ls -la
|
||||
|
||||
ORIGIN_COMMIT="https://$GITHUB_SERVER/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
|
||||
COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}"
|
||||
COMMIT_MESSAGE="${COMMIT_MESSAGE/\$GITHUB_REF/$GITHUB_REF}"
|
||||
#COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}"
|
||||
#COMMIT_MESSAGE="${COMMIT_MESSAGE/\$GITHUB_REF/$GITHUB_REF}"
|
||||
|
||||
COMMIT_MESSAGE="Update from $ORIGIN_COMMIT"
|
||||
|
||||
echo "[+] Set directory is safe ($CLONE_DIR)"
|
||||
# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 and https://github.com/cpina/github-action-push-to-another-repository/issues/64
|
||||
|
|
Loading…
Reference in New Issue
Block a user