File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments