diff --git a/.github/workflows/generate-content.yml b/.github/workflows/generate-content.yml index 8d11fa6..012ec10 100755 --- a/.github/workflows/generate-content.yml +++ b/.github/workflows/generate-content.yml @@ -36,7 +36,11 @@ jobs: git config --local user.name "GitHub Action" git status git add . + if git diff-index --quiet HEAD --; then + echo "No changes to commit" + else git commit -m "[bot] Generate doc content for AWS services" --no-verify + fi - name: Create pull request if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}