Skip to content

Commit

Permalink
ci: skip 'update-cli-screenshots' if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosdotme authored and Lee-W committed May 23, 2024
1 parent 26dc450 commit 8f88d56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docspublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/images/cli_help
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
git push
if [[ -n "$(git status --porcelain)" ]]; then
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
git push
else
echo "No changes to commit. Skipping."
fi
publish-documentation:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8f88d56

Please sign in to comment.