Refactor update job to streamline release body construction and improve readability
This commit is contained in:
parent
d09accc295
commit
40ff0e437e
@ -19,7 +19,6 @@ jobs:
|
||||
steps:
|
||||
- name: Get latest Homebrewery release via GitHub API
|
||||
run: |
|
||||
# 1) API-Call
|
||||
resp=$(curl -sSf \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-H "Authorization: token ${{ secrets.GH_TOKEN }}" \
|
||||
@ -40,19 +39,17 @@ jobs:
|
||||
echo "DRAFT=$draft" >>"$GITHUB_ENV"
|
||||
echo "PRERELEASE=$prerelease" >>"$GITHUB_ENV"
|
||||
|
||||
read -r -d '' RELEASE_BODY <<EOF
|
||||
# Homebrewery $name Image
|
||||
|
||||
> _This is an automated Docker Image update. Nothing other than the Homebrewery version changed._
|
||||
|
||||
$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"
|
||||
{
|
||||
echo "RELEASE_BODY<<EOF"
|
||||
printf '%s\n' "# Homebrewery $name Image"
|
||||
printf '\n'
|
||||
printf '%s\n' "> _This is an automated Docker Image update. Nothing other than the Homebrewery version changed._"
|
||||
printf '\n'
|
||||
printf '%s\n' "$body_text"
|
||||
printf '\n'
|
||||
printf '%s\n' "See original Changelog from [$name]($html_url)"
|
||||
echo "EOF"
|
||||
} >>"$GITHUB_ENV"
|
||||
|
||||
- name: Debug step
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user