We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fea0f commit d6f9383Copy full SHA for d6f9383
.github/workflows/generate_api.yml
@@ -60,7 +60,11 @@ jobs:
60
run: |
61
cd current-repo
62
git add .
63
- git commit -m "Update generated MATLAB API"
64
- git push origin main
+ # Check if there are any changes to commit
+ if git diff-index --quiet HEAD --; then
65
+ echo "No changes to commit."
66
+ else
67
+ git commit -m "Update generated MATLAB API"
68
+ git push origin main
69
env:
70
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments