From a66f766d05002f3ff46eeff476b969e0380cc82a Mon Sep 17 00:00:00 2001 From: Tim Hsiung Date: Sat, 9 May 2026 14:10:10 +0800 Subject: [PATCH] fix(ci): place --no-raise before bump subcommand The bump-version step in bumpversion.yml passed --no-raise 21 after the `bump` subcommand, but `--no-raise` is a top-level commitizen option. With it placed after the subcommand, argparse treats `--no-raise 21` as unknown trailing arguments and the CLI exits with code 18 (`INVALID_COMMAND_ARGUMENT`): Invalid commitizen arguments were found: `--no-raise`. Please use -- separator for extra git args This is what failed the bump workflow on master in run 25542335831. Move the option before `bump` so it is parsed by the parent parser, as intended by 5513e018 (`ci(bump): gracefully handle no bump-eligible commits`). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/bumpversion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index abcbc5172..f4068daf5 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -39,7 +39,7 @@ jobs: - id: bump-version run: | old_sha="$(git rev-parse HEAD)" - cz bump --yes --no-raise 21 + cz --no-raise 21 bump --yes if [ "$(git rev-parse HEAD)" = "$old_sha" ]; then echo "No bump-eligible commits found, skipping release."