forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 844 Bytes
/
main.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
name: "rebase master"
on:
# workflow_dispatch
schedule:
- cron: "30 6 * * 1-5"
jobs:
rebase:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- branch: master
rebase: upstream/master
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Add upstream
run: git remote add upstream https://github.com/anza-xyz/agave.git
- name: Fetch upstream
run: git fetch upstream
- name: Fetch origin
run: git fetch origin
- name: Setup email
run: |
git config --global user.email "job@job"
git config --global user.name "nightly rebase"
- name: rebase
run: git rebase ${{ matrix.rebase }}
- name: push
run: git push -f