99 sync-demo-branch :
1010 runs-on : ubuntu-latest
1111 steps :
12- # Checkout the demo branch first, this is where we'll merge into
12+ # *** CHANGE HERE: Revert to v3 for testing ***
1313 - name : Checkout demo branch
14- uses : actions/checkout@v4
14+ uses : actions/checkout@v3 # Reverted for testing
1515 with :
1616 ref : ' demo'
1717 token : ${{ secrets.DEMO_UPDATE_PAT }}
18- fetch-depth : 0 # Needed for merge history
18+ fetch-depth : 0 # Still needed
1919
2020 # Verify .gitattributes
2121 - name : Verify .gitattributes
@@ -29,19 +29,19 @@ jobs:
2929 git config user.name "GitHub Actions Bot"
3030 git config user.email "actions-bot@github.com"
3131
32- # Disable autocrlf
32+ # Disable autocrlf (keep this for now, doesn't hurt)
3333 - name : Disable autocrlf
3434 run : git config --global core.autocrlf false
3535
3636 # Fetch the latest changes from the remote, including main
3737 - name : Fetch origin
3838 run : git fetch origin
3939
40- # Perform the merge from main into demo
41- - name : Merge main into demo TEST without -X theirs
40+ # Perform the merge from main into demo (Relying on .gitattributes)
41+ - name : Merge main into demo (using .gitattributes)
4242 run : |
43- # TEST: Removed -X theirs to see if .gitattributes merge=ours works alone
44- git merge --no-ff origin/main -m "Auto-merge main into demo (TEST: without -X theirs) "
43+ # Relying on .gitattributes to handle demo-specific folders
44+ git merge --no-ff origin/main -m "Auto-merge main into demo"
4545
4646 # Push the merge commit (and resolved changes) back to the demo branch
4747 - name : Push changes to demo
0 commit comments