Skip to content

Commit

Permalink
ADD[#48]:Do not fail the workflow when there is no commit (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored Jan 2, 2024
2 parents a5e1382 + d0e7f22 commit 7aeadb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/generate-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 7aeadb7

Please sign in to comment.