Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8f88d56

Browse files
marcosdotmeLee-W
authored andcommitted
ci: skip 'update-cli-screenshots' if no changes
1 parent 26dc450 commit 8f88d56

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎.github/workflows/docspublish.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ jobs:
3030
git config --global user.name "github-actions[bot]"
3131
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3232
git add docs/images/cli_help
33-
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
34-
git push
33+
34+
if [[ -n "$(git status --porcelain)" ]]; then
35+
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
36+
git push
37+
else
38+
echo "No changes to commit. Skipping."
39+
fi
3540
3641
publish-documentation:
3742
runs-on: ubuntu-latest

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /