Skip to content

Commit f5128c6

Browse files
committed
ci: use printf instead of echo.
1 parent 023733f commit f5128c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/semver-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
- name: note the solution for the failure of cargo-semver-checks
5959
if: ${{ contains(steps.semverchecks.outcome, 'failure') }}
6060
run: |
61-
echo "::error::cargo-semver-checks failed, please add the hint comment to the \`package.version\` line in Cargo.toml file.\nOr you don't want to update the version, please check your code and find why cargo-semver-checks failed."
62-
echo "::warning::The comment version hint line should be like:\nversion = \"0.0.0\" # hint: <new_version>\n"
61+
printf "::error::cargo-semver-checks failed, please add the hint comment to the \`package.version\` line in Cargo.toml file.\nOr you don't want to update the version, please check your code and find why cargo-semver-checks failed.\n"
62+
printf "::warning::The comment version hint line should be like:\nversion = \"0.0.0\" # hint: <new_version>\n"
6363
exit 1
6464
# - name: Create a PR for version update reminder
6565
# if: ${{ contains(steps.semverchecks.outcome, 'failure') }}

0 commit comments

Comments
 (0)