forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (32 loc) · 929 Bytes
/
rebaser.yml
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
28
29
30
31
32
33
34
35
36
37
38
name: Update Branches
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- tf/actions/autorebase
workflow_dispatch:
jobs:
update-branches:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [tf/tfg250/baseboard, tf/SHT4x, tf/s35770]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
- name: Add upstream remote
run: git remote add upstream https://github.com/PX4/PX4-Autopilot.git
- name: Fetch all branches
run: git fetch --all
- name: Checkout and rebase branch
run: |
git checkout ${{ matrix.branch }}
git rebase upstream/main
git push origin ${{ matrix.branch }} --force