fix(ci): stage both inventory.yaml and inventory.sql in workflows to prevent unstaged rebase failures

This commit is contained in:
Nubenetes Bot
2026-06-18 17:35:40 +02:00
parent cba67c689c
commit 95c7078e6a
4 changed files with 5 additions and 5 deletions

View File

@@ -61,9 +61,9 @@ jobs:
run: |
git config --global user.name "Nubenetes Bot"
git config --global user.email "bot@nubenetes.com"
git add data/inventory.yaml
git add data/inventory.yaml data/inventory.sql
if git diff --staged --quiet; then
echo "No changes in inventory.yaml to commit."
echo "No changes in inventory to commit."
else
git commit -m "chore: update inventory stars and licenses [skip ci]"
git pull origin develop --rebase

View File

@@ -75,7 +75,7 @@ jobs:
run: |
git config --global user.name "Nubenetes Bot"
git config --global user.email "bot@nubenetes.com"
git add data/inventory.yaml
git add data/inventory.yaml data/inventory.sql
if git diff --staged --quiet; then
echo "No changes in AI analysis to commit."
else

View File

@@ -85,7 +85,7 @@ jobs:
run: |
git config --global user.name "Nubenetes Bot"
git config --global user.email "bot@nubenetes.com"
git add data/inventory.yaml v2-docs/videos/
git add data/inventory.yaml data/inventory.sql v2-docs/videos/
if git diff --staged --quiet; then
echo "No automated changes to commit."
else

View File

@@ -49,7 +49,7 @@ jobs:
run: |
git config --global user.name "nubenetes-bot"
git config --global user.email "bot@nubenetes.com"
git add docs/ v2-docs/ README.md data/inventory.yaml src/memory/
git add docs/ v2-docs/ README.md data/inventory.yaml data/inventory.sql src/memory/
if ! git diff --cached --quiet; then
git commit -m "style(cleaner): auto-correcting formatting & URL normalization"
git push origin HEAD:${{ github.event.pull_request.head.ref }} || echo "⚠️ Push failed (likely fork permission limit)."