forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 50
46 lines (38 loc) · 1.09 KB
/
rebase.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
39
40
41
42
43
44
45
46
name: Rebase branches against NetBSD
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
jobs:
rebase:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch:
- feature/macos/trunk
- feature/miscfix/trunk
- feature/mktool/trunk
- feature/pbulk/trunk
- feature/pbulkmulti/trunk
- feature/performance/trunk
- trunk
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure github-actions bot
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch NetBSD/pkgsrc.git
run: |
git remote add netbsd https://github.com/NetBSD/pkgsrc.git
git fetch netbsd
- name: Rebase ${{ matrix.branch }}
run: |
git checkout ${{ matrix.branch }}
git rebase netbsd/trunk
- name: Push ${{ matrix.branch }}
run: |
git push --force origin ${{ matrix.branch }}