fix: adding a check

This commit is contained in:
DaanV2
2025-10-14 19:57:26 +02:00
parent c4681c1437
commit aba90502d4

View File

@@ -36,12 +36,17 @@ jobs:
with: with:
specificationFile: "source/compress_specification.json" specificationFile: "source/compress_specification.json"
- name: ✏️ Commit changes - name: ✏️ Commit and push changes (if any)
continue-on-error: true
run: | run: |
cd ${{github.workspace}} cd "${{ github.workspace }}"
git config --global user.email "orbi@blockception.com" git config --global user.email "orbi@blockception.com"
git config --global user.name "Orbi-bot" git config --global user.name "Orbi-bot"
git add . git add .
git commit -m "auto: generated json schemas ${{ steps.time.outputs.time }}" if ! git diff --cached --quiet; then
git push echo "📝 Changes detected, committing..."
git commit -m "auto: generated json schemas ${{ steps.time.outputs.time }}"
echo "🚀 Pushing changes..."
git push
else
echo "✅ No changes to commit."
fi