Update github action

This commit is contained in:
Felarof
2025-11-07 09:21:06 -08:00
parent a4f1fb14af
commit fa42090e31
2 changed files with 4 additions and 21 deletions

View File

@@ -34,24 +34,8 @@ jobs:
- name: Update agent submodule
run: |
set -e
bash scripts/update-submodule.sh main
# Fetch latest changes from submodule
cd packages/browseros-agent
git fetch origin main --tags
git checkout main
git pull --ff-only origin main
cd ../..
# Check if submodule has new commits
if git diff --quiet packages/browseros-agent; then
echo "No updates available"
exit 0
fi
# Commit and push the submodule update
NEW_SHA=$(git -C packages/browseros-agent rev-parse --short HEAD)
git add packages/browseros-agent
git commit -m "chore: sync packages/browseros-agent submodule (to $NEW_SHA)"
- name: Push changes
run: |
git push origin main
echo "Updated submodule to $NEW_SHA"