fix: use multiline string
This commit is contained in:
parent
c7487e8c98
commit
ad81b423ab
15
action.yml
15
action.yml
|
@ -163,12 +163,15 @@ runs:
|
||||||
- name: Set additional env variables (GIT_COMMIT_MESSAGE)
|
- name: Set additional env variables (GIT_COMMIT_MESSAGE)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
GIT_COMMIT_MESSAGE="$(git log --format=%b -n 1)"
|
DELIMITER=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||||
GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//'%'/'%25'}"
|
COMMIT_MESSAGE="$(git log --format=%b -n 1)"
|
||||||
GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\n'/'%0A'}"
|
# GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//'%'/'%25'}"
|
||||||
GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\r'/'%0D'}"
|
# GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\n'/'%0A'}"
|
||||||
echo "GIT_COMMIT_MESSAGE=$GIT_COMMIT_MESSAGE" >> $GITHUB_ENV
|
# GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\r'/'%0D'}"
|
||||||
echo "GIT_COMMIT_MESSAGE is: ${GIT_COMMIT_MESSAGE}"
|
echo "GIT_COMMIT_MESSAGE<<$DELIMITER" >> $GITHUB_ENV
|
||||||
|
echo "$COMMIT_MESSAGE" >> $GITHUB_ENV
|
||||||
|
echo "$DELIMITER" >> $GITHUB_ENV
|
||||||
|
echo "GIT_COMMIT_MESSAGE is: ${COMMIT_MESSAGE}"
|
||||||
- name: Interpolate PR Body
|
- name: Interpolate PR Body
|
||||||
uses: pedrolamas/handlebars-action@v2.2.0
|
uses: pedrolamas/handlebars-action@v2.2.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue