Skip to content

Commit c3243a8

Browse files
committed
ci/validate-pr: Use ::error:: command to print errors
This will make Github render the log line as an error. (copied from moby/moby fb92caf2aa6cf3664e11dc06ee10d114af300826) Signed-off-by: Paweł Gronowski <[email protected]>
1 parent f92fcde commit c3243a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/validate-pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Missing `area/` label
1212
if: contains(join(github.event.pull_request.labels.*.name, ','), 'impact/') && !contains(join(github.event.pull_request.labels.*.name, ','), 'area/')
1313
run: |
14-
echo "Every PR with an \`impact/*\` label should also have an \`area/*\` label"
14+
echo "::error::Every PR with an 'impact/*' label should also have an 'area/*' label"
1515
exit 1
1616
- name: OK
1717
run: exit 0
@@ -32,13 +32,13 @@ jobs:
3232
desc=$(echo "$block" | awk NF)
3333
3434
if [ -z "$desc" ]; then
35-
echo "Changelog section is empty. Please provide a description for the changelog."
35+
echo "::error::Changelog section is empty. Please provide a description for the changelog."
3636
exit 1
3737
fi
3838
3939
len=$(echo -n "$desc" | wc -c)
4040
if [[ $len -le 6 ]]; then
41-
echo "Description looks too short: $desc"
41+
echo "::error::Description looks too short: $desc"
4242
exit 1
4343
fi
4444

0 commit comments

Comments
 (0)