Skip to content

Commit

Permalink
Merge pull request #72 from devops-infra/bugfix/multiline-output
Browse files Browse the repository at this point in the history
Fix for setting multiline outputs
  • Loading branch information
ChristophShyper committed Nov 3, 2022
2 parents ed5e868 + f9e6b9a commit b7427f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -2,7 +2,7 @@
phony: help

# Release tag for the action
VERSION := v0.9.0
VERSION := v0.9.1

# GitHub Actions bogus variables
GITHUB_REF ?= refs/heads/null
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -45,7 +45,7 @@ outputs:
description: Name of the branch code was pushed into
runs:
using: docker
image: docker://devopsinfra/action-commit-push:v0.9.0
image: docker://devopsinfra/action-commit-push:v0.9.1
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
branding:
Expand Down
8 changes: 6 additions & 2 deletions entrypoint.sh
Expand Up @@ -85,8 +85,12 @@ elif [[ -n ${FILES_CHANGED} ]]; then
fi

# Finish
echo "files_changed=${FILES_CHANGED}" >>"$GITHUB_OUTPUT"
echo "branch_name=${BRANCH}" >>"$GITHUB_OUTPUT"
{
echo "files_changed<<EOF"
echo "${FILES_CHANGED}"
echo "EOF"
echo "branch_name=${BRANCH}"
} >> "$GITHUB_OUTPUT"
if [[ ${RET_CODE} != "0" ]]; then
echo -e "\n[ERROR] Check log for errors."
exit 1
Expand Down

0 comments on commit b7427f1

Please sign in to comment.