Fixed here-docs.

This commit is contained in:
Patrick Lehmann
2025-05-01 19:24:05 +02:00
parent 2f4ccf2af4
commit 4addce16fa
3 changed files with 12 additions and 12 deletions

View File

@@ -96,10 +96,10 @@ on:
secrets: secrets:
CODECOV_TOKEN: CODECOV_TOKEN:
description: 'Token to push result to Codecov.' description: 'Token to push result to Codecov.'
required: true required: false
CODACY_TOKEN: CODACY_TOKEN:
description: 'Token to push result to Codacy.' description: 'Token to push result to Codacy.'
required: true required: false
jobs: jobs:
PublishCoverageResults: PublishCoverageResults:

View File

@@ -65,7 +65,7 @@ on:
default: | default: |
-------- --------
Published from [%%gh_workflow%%](%%gh_server%%/%%gh_owner_repo%%/actions/runs/%%gh_runid%%) workflow triggered by %%gh_actor%% on %%datetime%%. Published from [%%gh_workflow_name%%](%%gh_server%%/%%gh_owner_repo%%/actions/runs/%%gh_runid%%) workflow triggered by %%gh_actor%% on %%datetime%%.
This automatic release was created by [pyTooling/Actions](http://github.com/pyTooling/Actions)::Release.yml This automatic release was created by [pyTooling/Actions](http://github.com/pyTooling/Actions)::Release.yml
type: string type: string
@@ -206,12 +206,12 @@ jobs:
export GH_TOKEN=${{ github.token }} export GH_TOKEN=${{ github.token }}
# Save release description (from parameter in a file) # Save release description (from parameter in a file)
cat <<'EOF' > __DESCRIPTION__.md head -c -1 <<'EOF' > __DESCRIPTION__.md
${{ inputs.description }} ${{ inputs.description }}
EOF EOF
# Save release footer (from parameter in a file) # Save release footer (from parameter in a file)
cat <<'EOF' > __FOOTER__.md head -c -1 <<'EOF' > __FOOTER__.md
${{ inputs.description_footer }} ${{ inputs.description_footer }}
EOF EOF
@@ -276,8 +276,8 @@ jobs:
printf "Use '__PULLREQUEST__.md' as main release description.\n" printf "Use '__PULLREQUEST__.md' as main release description.\n"
mv -v __PULLREQUEST__.md __NOTES__.md mv -v __PULLREQUEST__.md __NOTES__.md
printf "Append '%%FOOTER%%' to '__NOTES__.md'.\n" printf "Append '%%%%FOOTER%%%%' to '__NOTES__.md'.\n"
printf "\n%%FOOTER%%\n" >> __NOTES__.md printf "\n%%%%FOOTER%%%%\n" >> __NOTES__.md
else else
printf "${ANSI_LIGHT_RED}No release description specified (file, parameter, PR text).${ANSI_NOCOLOR}\n" printf "${ANSI_LIGHT_RED}No release description specified (file, parameter, PR text).${ANSI_NOCOLOR}\n"
printf "::error title=%s::%s\n" "MissingDescription" "No release description specified (file, parameter, PR text)." printf "::error title=%s::%s\n" "MissingDescription" "No release description specified (file, parameter, PR text)."
@@ -350,21 +350,21 @@ jobs:
# Display partial contents for debugging # Display partial contents for debugging
if [[ -s __DESCRIPTION__.md ]]; then if [[ -s __DESCRIPTION__.md ]]; then
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__DESCRIPTION__.md' ...." printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__DESCRIPTION__.md' ($(stat --printf="%s" "__DESCRIPTION__.md") B) ...."
cat __DESCRIPTION__.md cat __DESCRIPTION__.md
printf "::endgroup::\n" printf "::endgroup::\n"
else else
printf "${ANSI_LIGHT_YELLOW}No '__DESCRIPTION__.md' found.${ANSI_NOCOLOR}\n" printf "${ANSI_LIGHT_YELLOW}No '__DESCRIPTION__.md' found.${ANSI_NOCOLOR}\n"
fi fi
if [[ -s __PULLREQUEST__.md ]]; then if [[ -s __PULLREQUEST__.md ]]; then
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__PULLREQUEST__.md' ...." printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__PULLREQUEST__.md' ($(stat --printf="%s" "__PULLREQUEST__.md") B) ...."
cat __PULLREQUEST__.md cat __PULLREQUEST__.md
printf "::endgroup::\n" printf "::endgroup::\n"
else else
printf "${ANSI_LIGHT_YELLOW}No '__PULLREQUEST__.md' found.${ANSI_NOCOLOR}\n" printf "${ANSI_LIGHT_YELLOW}No '__PULLREQUEST__.md' found.${ANSI_NOCOLOR}\n"
fi fi
if [[ -s __FOOTER__.md ]]; then if [[ -s __FOOTER__.md ]]; then
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__FOOTER__.md' ...." printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__FOOTER__.md' ($(stat --printf="%s" "__FOOTER__.md") B) ...."
cat __FOOTER__.md cat __FOOTER__.md
printf "::endgroup::\n" printf "::endgroup::\n"
else else
@@ -372,7 +372,7 @@ jobs:
fi fi
# Print final release notes # Print final release notes
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__NOTES__.md' ...." printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__NOTES__.md' ($(stat --printf="%s" "__NOTES__.md") B) ...."
cat __NOTES__.md cat __NOTES__.md
printf "::endgroup::\n" printf "::endgroup::\n"

View File

@@ -82,7 +82,7 @@ on:
secrets: secrets:
CODECOV_TOKEN: CODECOV_TOKEN:
description: 'Token to push result to Codecov.' description: 'Token to push result to Codecov.'
required: true required: false
jobs: jobs:
PublishTestResults: PublishTestResults: