Skip to content

Commit

Permalink
Update docs publishing to skip push if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jun 17, 2023
1 parent a404a5e commit a685335
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ jobs:
with:
args: docfx.json

- name: Check for changes
id: check_changes
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Update branch
if: steps.check_changes.outputs.changed == 'true'
run: |
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down

0 comments on commit a685335

Please sign in to comment.