Skip to content

Commit

Permalink
Merge pull request #23 from robholland/rh-multiline-compat
Browse files Browse the repository at this point in the history
Backwards compatibility with Github Enterprise.
  • Loading branch information
ianbelcher authored Oct 24, 2022
2 parents 1d3a2b2 + 83bb551 commit 843a952
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ fi

debug "${output}"

delimiter=$(mktemp -u XXXXXX)
if [ -n "${GITHUB_OUTPUT:-}" ]; then
delimiter=$(mktemp -u XXXXXX)

echo "kubectl-out<<${delimiter}" >> $GITHUB_OUTPUT
echo "${output}" >> $GITHUB_OUTPUT
echo "${delimiter}" >> $GITHUB_OUTPUT
echo "kubectl-out<<${delimiter}" >> $GITHUB_OUTPUT
echo "${output}" >> $GITHUB_OUTPUT
echo "${delimiter}" >> $GITHUB_OUTPUT
else
echo ::set-output name=kubectl-out::"${output}"
fi

0 comments on commit 843a952

Please sign in to comment.