Skip to content

Commit

Permalink
Create rebase.yml
Browse files Browse the repository at this point in the history
Update main.yml

Update main.yml

Update main.yml

Update main.yml

Update main.yml

Update main.yml
  • Loading branch information
HaoranYi authored and HaoranYi committed May 24, 2024
1 parent cd7710b commit 853bc36
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 853bc36

Please sign in to comment.