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 23, 2024
1 parent cd7710b commit b78b899
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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/solana-labs/solana.git
- name: Fetch upstream
run: git fetch upstream
- name: Fetch origin
run: git fetch origin
- name: rebase
run: git rebase ${{ matrix.rebase }}
- name: push
run: git push -f

0 comments on commit b78b899

Please sign in to comment.