Skip to content

Skip "git push" is no screenshot is updated in job "update-cli-screenshots" #1138

Closed
@Lee-W

Description

@Lee-W

Description

- name: Commit and push updated CLI screenshots
should be skipped if nothing is updated in
poetry run python scripts/gen_cli_help_screenshots.py

Steps to reproduce

  1. poetry run python scripts/gen_cli_help_screenshots.py
  2. Run git commit and git push

Current behavior

Blocking documentation generation due to

git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
git push
failure if there's no screenshot update

Desired behavior

If no screenshot is updated, the CI should just skip the committing and pushing steps.

Screenshots

No response

Environment

Commitizen Version: 3.13.0
Python Version: 3.11.6 (main, Oct 16 2023, 12:18:37) [Clang 15.0.0 (clang-1500.0.40.1)]
Operating System: Darwin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions