Skip to content

Commit 4addce1

Browse files
committed
Fixed here-docs.
1 parent 2f4ccf2 commit 4addce1

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/PublishCoverageResults.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ on:
9696
secrets:
9797
CODECOV_TOKEN:
9898
description: 'Token to push result to Codecov.'
99-
required: true
99+
required: false
100100
CODACY_TOKEN:
101101
description: 'Token to push result to Codacy.'
102-
required: true
102+
required: false
103103

104104
jobs:
105105
PublishCoverageResults:

.github/workflows/PublishReleaseNotes.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ on:
6565
default: |
6666
6767
--------
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%%.
6969
7070
This automatic release was created by [pyTooling/Actions](http://github.com/pyTooling/Actions)::Release.yml
7171
type: string
@@ -206,12 +206,12 @@ jobs:
206206
export GH_TOKEN=${{ github.token }}
207207
208208
# Save release description (from parameter in a file)
209-
cat <<'EOF' > __DESCRIPTION__.md
209+
head -c -1 <<'EOF' > __DESCRIPTION__.md
210210
${{ inputs.description }}
211211
EOF
212212
213213
# Save release footer (from parameter in a file)
214-
cat <<'EOF' > __FOOTER__.md
214+
head -c -1 <<'EOF' > __FOOTER__.md
215215
${{ inputs.description_footer }}
216216
EOF
217217
@@ -276,8 +276,8 @@ jobs:
276276
printf "Use '__PULLREQUEST__.md' as main release description.\n"
277277
mv -v __PULLREQUEST__.md __NOTES__.md
278278
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
281281
else
282282
printf "${ANSI_LIGHT_RED}No release description specified (file, parameter, PR text).${ANSI_NOCOLOR}\n"
283283
printf "::error title=%s::%s\n" "MissingDescription" "No release description specified (file, parameter, PR text)."
@@ -350,29 +350,29 @@ jobs:
350350
351351
# Display partial contents for debugging
352352
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) ...."
354354
cat __DESCRIPTION__.md
355355
printf "::endgroup::\n"
356356
else
357357
printf "${ANSI_LIGHT_YELLOW}No '__DESCRIPTION__.md' found.${ANSI_NOCOLOR}\n"
358358
fi
359359
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) ...."
361361
cat __PULLREQUEST__.md
362362
printf "::endgroup::\n"
363363
else
364364
printf "${ANSI_LIGHT_YELLOW}No '__PULLREQUEST__.md' found.${ANSI_NOCOLOR}\n"
365365
fi
366366
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) ...."
368368
cat __FOOTER__.md
369369
printf "::endgroup::\n"
370370
else
371371
printf "${ANSI_LIGHT_YELLOW}No '__FOOTER__.md' found.${ANSI_NOCOLOR}\n"
372372
fi
373373
374374
# 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) ...."
376376
cat __NOTES__.md
377377
printf "::endgroup::\n"
378378

.github/workflows/PublishTestResults.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ on:
8282
secrets:
8383
CODECOV_TOKEN:
8484
description: 'Token to push result to Codecov.'
85-
required: true
85+
required: false
8686

8787
jobs:
8888
PublishTestResults:

0 commit comments

Comments
 (0)