Skip to content

Commit 5ab4e5d

Browse files
committed
Update update-framework.yml
1 parent 8439590 commit 5ab4e5d

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/update-framework.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,21 @@ jobs:
9696
- name: Commit and Push Changes
9797
run: |
9898
cd ios
99-
git config --global user.name "GitHub Actions"
100-
git config --global user.email "actions@github.com"
99+
git config user.name "GitHub Actions"
100+
git config user.email "actions@github.com"
101+
102+
# Make sure we have the latest remote main and tags
103+
git fetch origin main --tags
104+
105+
# Rebase our local changes onto the latest remote main
106+
git pull --rebase --autostash origin main
107+
101108
git add .
102-
git commit -m "Update framework"
109+
git commit -m "Update framework" || echo "No changes to commit"
110+
111+
# Safety: remote main may have advanced again between commit and push
112+
git pull --rebase --autostash origin main
113+
103114
git push origin main
104115
105116
- name: Tag the New Version

0 commit comments

Comments
 (0)