Skip to content

Commit b7427f1

Browse files
Merge pull request #72 from devops-infra/bugfix/multiline-output
Fix for setting multiline outputs
2 parents ed5e868 + f9e6b9a commit b7427f1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
phony: help
33

44
# Release tag for the action
5-
VERSION := v0.9.0
5+
VERSION := v0.9.1
66

77
# GitHub Actions bogus variables
88
GITHUB_REF ?= refs/heads/null

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ outputs:
4545
description: Name of the branch code was pushed into
4646
runs:
4747
using: docker
48-
image: docker://devopsinfra/action-commit-push:v0.9.0
48+
image: docker://devopsinfra/action-commit-push:v0.9.1
4949
env:
5050
GITHUB_TOKEN: ${{ inputs.github_token }}
5151
branding:

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ elif [[ -n ${FILES_CHANGED} ]]; then
8585
fi
8686

8787
# Finish
88-
echo "files_changed=${FILES_CHANGED}" >>"$GITHUB_OUTPUT"
89-
echo "branch_name=${BRANCH}" >>"$GITHUB_OUTPUT"
88+
{
89+
echo "files_changed<<EOF"
90+
echo "${FILES_CHANGED}"
91+
echo "EOF"
92+
echo "branch_name=${BRANCH}"
93+
} >> "$GITHUB_OUTPUT"
9094
if [[ ${RET_CODE} != "0" ]]; then
9195
echo -e "\n[ERROR] Check log for errors."
9296
exit 1

0 commit comments

Comments
 (0)