Skip to content

Commit

Permalink
ci: avoid errors when no new autodoc is available
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Dec 16, 2024
1 parent 3fa2c33 commit 96f7e2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/update-autodoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ jobs:
git commit -m "docs: update autodoc markdowns"
git push origin update-autodoc
if git diff-index HEAD; then
echo "No changes detected. Skipping commit and PR creation."
echo "no_changes=true" >> $GITHUB_ENV
else
git commit -m "docs: update autodoc markdowns"
git push origin update-autodoc
fi
- name: Create pull request
if: env.no_changes != 'true'
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 96f7e2f

Please sign in to comment.