Skip to content

Commit

Permalink
delimit
Browse files Browse the repository at this point in the history
  • Loading branch information
kishansairam9 committed Feb 7, 2024
1 parent 8515f63 commit 1609699
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/extract-args.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
BASE_JAVA_VERSION=$(echo $TOTAL_JAVA_VERSION | cut -d'-' -f1)
MAJOR_JAVA_VERSION=$(echo $BASE_JAVA_VERSION | cut -d'.' -f1)
echo "tags=${{ inputs.image }}:$MAJOR_JAVA_VERSION,${{ inputs.image }}:$BASE_JAVA_VERSION,${{ inputs.image }}:$TOTAL_JAVA_VERSION" >> $GITHUB_OUTPUT
echo 'args<<EOF' >> $GITHUB_OUTPUT
cat ${{ inputs.file }} >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
# multi line output of content in input file
# https://github.com/orgs/community/discussions/26288#discussioncomment-3876281
delimiter="$(openssl rand -hex 8)"
echo "args<<${delimiter}" >> "${GITHUB_OUTPUT}"
cat ${{ inputs.file }} >> "${GITHUB_OUTPUT}"
echo "${delimiter}" >> "${GITHUB_OUTPUT}"

0 comments on commit 1609699

Please sign in to comment.