Skip to content

Commit

Permalink
ci: only update READMEs if there are actual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-besbes committed Oct 7, 2024
1 parent 35f254a commit e1f9b5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/generate-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ jobs:
run: |
python scripts/${{ matrix.platform }}/generate.py
- name: Check for changes in the directory
id: check_changes
run: |
git diff --exit-code solutions/${{ matrix.platform }} || echo "changes"
- name: Commit and push changes
if: steps.check_changes.outputs.changes == 'changes'
run: |
git config user.name 'GitHub Actions'
git config user.email 'actions@github.com'
Expand Down

0 comments on commit e1f9b5f

Please sign in to comment.