diff --git a/.github/workflows/update_devices.yml b/.github/workflows/update_devices.yml index 38ef436..154aef8 100644 --- a/.github/workflows/update_devices.yml +++ b/.github/workflows/update_devices.yml @@ -2,7 +2,7 @@ name: Update devices in wiki permissions: contents: write - + on: workflow_dispatch: push: @@ -45,6 +45,10 @@ jobs: cd mkdocs_branch git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' - git add docs/features.md - git commit -m 'Update features.md with new device data' - git push origin mkdocs + if [[ -n $(git status --porcelain) ]]; then + git add docs/features.md + git commit -m 'Update features.md with new device data' + git push origin mkdocs + else + echo "No changes to commit" + fi