mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-13 15:46:22 +00:00
Update github action
This commit is contained in:
22
.github/workflows/update-agent-submodule.yml
vendored
22
.github/workflows/update-agent-submodule.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user