|
65 | 65 | default: |
|
66 | 66 |
|
67 | 67 | --------
|
68 |
| - Published from [%%gh_workflow%%](%%gh_server%%/%%gh_owner_repo%%/actions/runs/%%gh_runid%%) workflow triggered by %%gh_actor%% on %%datetime%%. |
| 68 | + Published from [%%gh_workflow_name%%](%%gh_server%%/%%gh_owner_repo%%/actions/runs/%%gh_runid%%) workflow triggered by %%gh_actor%% on %%datetime%%. |
69 | 69 |
|
70 | 70 | This automatic release was created by [pyTooling/Actions](http://github.com/pyTooling/Actions)::Release.yml
|
71 | 71 | type: string
|
@@ -206,12 +206,12 @@ jobs:
|
206 | 206 | export GH_TOKEN=${{ github.token }}
|
207 | 207 |
|
208 | 208 | # Save release description (from parameter in a file)
|
209 |
| - cat <<'EOF' > __DESCRIPTION__.md |
| 209 | + head -c -1 <<'EOF' > __DESCRIPTION__.md |
210 | 210 | ${{ inputs.description }}
|
211 | 211 | EOF
|
212 | 212 |
|
213 | 213 | # Save release footer (from parameter in a file)
|
214 |
| - cat <<'EOF' > __FOOTER__.md |
| 214 | + head -c -1 <<'EOF' > __FOOTER__.md |
215 | 215 | ${{ inputs.description_footer }}
|
216 | 216 | EOF
|
217 | 217 |
|
@@ -276,8 +276,8 @@ jobs:
|
276 | 276 | printf "Use '__PULLREQUEST__.md' as main release description.\n"
|
277 | 277 | mv -v __PULLREQUEST__.md __NOTES__.md
|
278 | 278 |
|
279 |
| - printf "Append '%%FOOTER%%' to '__NOTES__.md'.\n" |
280 |
| - printf "\n%%FOOTER%%\n" >> __NOTES__.md |
| 279 | + printf "Append '%%%%FOOTER%%%%' to '__NOTES__.md'.\n" |
| 280 | + printf "\n%%%%FOOTER%%%%\n" >> __NOTES__.md |
281 | 281 | else
|
282 | 282 | printf "${ANSI_LIGHT_RED}No release description specified (file, parameter, PR text).${ANSI_NOCOLOR}\n"
|
283 | 283 | printf "::error title=%s::%s\n" "MissingDescription" "No release description specified (file, parameter, PR text)."
|
@@ -350,29 +350,29 @@ jobs:
|
350 | 350 |
|
351 | 351 | # Display partial contents for debugging
|
352 | 352 | if [[ -s __DESCRIPTION__.md ]]; then
|
353 |
| - printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__DESCRIPTION__.md' ...." |
| 353 | + printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__DESCRIPTION__.md' ($(stat --printf="%s" "__DESCRIPTION__.md") B) ...." |
354 | 354 | cat __DESCRIPTION__.md
|
355 | 355 | printf "::endgroup::\n"
|
356 | 356 | else
|
357 | 357 | printf "${ANSI_LIGHT_YELLOW}No '__DESCRIPTION__.md' found.${ANSI_NOCOLOR}\n"
|
358 | 358 | fi
|
359 | 359 | if [[ -s __PULLREQUEST__.md ]]; then
|
360 |
| - printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__PULLREQUEST__.md' ...." |
| 360 | + printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__PULLREQUEST__.md' ($(stat --printf="%s" "__PULLREQUEST__.md") B) ...." |
361 | 361 | cat __PULLREQUEST__.md
|
362 | 362 | printf "::endgroup::\n"
|
363 | 363 | else
|
364 | 364 | printf "${ANSI_LIGHT_YELLOW}No '__PULLREQUEST__.md' found.${ANSI_NOCOLOR}\n"
|
365 | 365 | fi
|
366 | 366 | if [[ -s __FOOTER__.md ]]; then
|
367 |
| - printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__FOOTER__.md' ...." |
| 367 | + printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__FOOTER__.md' ($(stat --printf="%s" "__FOOTER__.md") B) ...." |
368 | 368 | cat __FOOTER__.md
|
369 | 369 | printf "::endgroup::\n"
|
370 | 370 | else
|
371 | 371 | printf "${ANSI_LIGHT_YELLOW}No '__FOOTER__.md' found.${ANSI_NOCOLOR}\n"
|
372 | 372 | fi
|
373 | 373 |
|
374 | 374 | # Print final release notes
|
375 |
| - printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__NOTES__.md' ...." |
| 375 | + printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Content of '__NOTES__.md' ($(stat --printf="%s" "__NOTES__.md") B) ...." |
376 | 376 | cat __NOTES__.md
|
377 | 377 | printf "::endgroup::\n"
|
378 | 378 |
|
|
0 commit comments