Refactor update job to construct release body directly in environment variable and simplify body handling
This commit is contained in:
parent
34af6e65d2
commit
d09accc295
@ -40,11 +40,19 @@ jobs:
|
|||||||
echo "DRAFT=$draft" >>"$GITHUB_ENV"
|
echo "DRAFT=$draft" >>"$GITHUB_ENV"
|
||||||
echo "PRERELEASE=$prerelease" >>"$GITHUB_ENV"
|
echo "PRERELEASE=$prerelease" >>"$GITHUB_ENV"
|
||||||
|
|
||||||
{
|
read -r -d '' RELEASE_BODY <<EOF
|
||||||
echo "BODY<<EOF"
|
# Homebrewery $name Image
|
||||||
printf '%s\n' "$body_text"
|
|
||||||
echo "EOF"
|
> _This is an automated Docker Image update. Nothing other than the Homebrewery version changed._
|
||||||
} >>"$GITHUB_ENV"
|
|
||||||
|
$body_text
|
||||||
|
|
||||||
|
See original Changelog from [$name]($url)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo "RELEASE_BODY<<EOF" >>"$GITHUB_ENV"
|
||||||
|
printf '%s\n' "$RELEASE_BODY" >>"$GITHUB_ENV"
|
||||||
|
echo "EOF" >>"$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Debug step
|
- name: Debug step
|
||||||
run: |
|
run: |
|
||||||
@ -62,11 +70,4 @@ jobs:
|
|||||||
prerelease: ${{ env.PRERELEASE }}
|
prerelease: ${{ env.PRERELEASE }}
|
||||||
name: ${{ env.NAME }}
|
name: ${{ env.NAME }}
|
||||||
tag_name: ${{ env.TAG_NAME }}
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
body: |
|
body: ${{ env.RELEASE_BODY }}
|
||||||
# Homebrewery ${{ env.$NAME }} Image
|
|
||||||
|
|
||||||
> _This is an automated Docker Image update. Nothing other than the Homebrewery version changed._
|
|
||||||
|
|
||||||
${{ env.BODY }}
|
|
||||||
|
|
||||||
See original Changelog from [${{ env.NAME }}](${{ env.URL }})
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user