Skip to content

Commit

Permalink
Backwards compatibility with Github Enterprise.
Browse files Browse the repository at this point in the history
  • Loading branch information
robholland committed Oct 21, 2022
1 parent 1d3a2b2 commit 83bb551
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 83bb551

Please sign in to comment.