fix: adding a check
This commit is contained in:
15
.github/workflows/compress-json-schemas.yml
vendored
15
.github/workflows/compress-json-schemas.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user