Merge pull request #211 from Hepolise/dependabot/github_actions/main/… #31
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: Rebase Dev on Main | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| rebase: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Git user | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Rebase dev onto main | |
| run: | | |
| git fetch origin | |
| git checkout dev | |
| git rebase origin/main || (git rebase --abort && exit 1) | |
| git push origin dev --force-with-lease |