fix: adding a fix by making prs
This commit is contained in:
21
.github/workflows/compress-json-schemas.yml
vendored
21
.github/workflows/compress-json-schemas.yml
vendored
@@ -36,17 +36,10 @@ jobs:
|
||||
with:
|
||||
specificationFile: "source/compress_specification.json"
|
||||
|
||||
- name: ✏️ Commit and push changes (if any)
|
||||
run: |
|
||||
cd "${{ github.workspace }}"
|
||||
git config --global user.email "orbi@blockception.com"
|
||||
git config --global user.name "Orbi-bot"
|
||||
git add .
|
||||
if ! git diff --cached --quiet; then
|
||||
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
|
||||
- name: ✏️ Commit and Create PR
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
branch: auto/update-schemas
|
||||
commit-message: "auto: generated json schemas ${{ steps.time.outputs.time }}"
|
||||
title: "Automated JSON schema update"
|
||||
body: "This PR updates the generated JSON schemas."
|
||||
|
||||
Reference in New Issue
Block a user