Merge branch 'main' of https://github.com/OpenEarable/open-earable-v2… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Rebase flex-pcb-fix on main update | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| rebase-flex-pcb-fix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 # Important for rebase | |
| - name: Set up Git | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "[email protected]" | |
| - name: Fetch all branches | |
| run: git fetch --all | |
| - name: Rebase flex-pcb-fix onto main | |
| run: | | |
| git checkout flex-pcb-fix | |
| git rebase origin/main || echo "❌ Rebase failed on 'flex-pcb-fix' due to conflicts. Manual intervention required." | |
| git push --force-with-lease origin flex-pcb-fix |