Skip to content

Commit

Permalink
fix error, if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzroe committed Jun 12, 2024
1 parent 71b5e26 commit 2d7e9a2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update_devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update devices in wiki

permissions:
contents: write

on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -45,6 +45,10 @@ jobs:
cd mkdocs_branch
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
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

0 comments on commit 2d7e9a2

Please sign in to comment.