forked from Hepolise/VolumeKeyTrackControlModule
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 675 Bytes
/
Copy pathrebase.yml
File metadata and controls
27 lines (23 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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