Skip to content

Commit

Permalink
build: fix GITHUB_OUTPUT multiline variable error (#400)
Browse files Browse the repository at this point in the history
This fixes the provenance generation output to properly write multi-line
string to GITHUB_OUTPUT for use in subsequent jobs.
  • Loading branch information
rsoberano-ld committed Jun 17, 2024
1 parent e50f7b0 commit ccde8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ runs:
image_and_digest=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Docker Manifest") | .path')
image=$(echo "${image_and_digest}" | cut -d'@' -f1 | cut -d':' -f1)
digest=$(echo "${image_and_digest}" | cut -d'@' -f2)
{ echo 'name<<EOF'; echo $image; echo EOF } >> "$GITHUB_OUTPUT"
{ echo 'digest<<EOF'; echo $digest; echo EOF } >> "$GITHUB_OUTPUT"
{ echo 'name<<END'; echo $image; echo END; } >> "$GITHUB_OUTPUT"
{ echo 'digest<<END'; echo $digest; echo END; } >> "$GITHUB_OUTPUT"
- name: Upload Release Artifacts
shell: bash
Expand Down

0 comments on commit ccde8e2

Please sign in to comment.