Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase from different repos #637

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: "Rebase jito-solana from upstream anza-xyz/agave"
on:
# push:
schedule:
- cron: "30 18 * * 1-5"
- cron: "00 19 * * 1-5"

jobs:
rebase:
Expand All @@ -30,11 +30,14 @@ jobs:
matrix:
include:
- branch: master
rebase: upstream/master
- branch: v1.18
rebase: upstream/v1.18
upstream_branch: master
upstream_repo: https://github.com/anza-xyz/agave.git
- branch: v2.0
rebase: upstream/v2.0
upstream_branch: v2.0
upstream_repo: https://github.com/anza-xyz/agave.git
- branch: v1.18
upstream_branch: v1.18
upstream_repo: https://github.com/solana-labs/solana.git
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +47,7 @@ jobs:
fetch-depth: 0
token: ${{ secrets.JITO_SOLANA_RELEASE_TOKEN }}
- name: Add upstream
run: git remote add upstream https://github.com/anza-xyz/agave.git
run: git remote add upstream ${{ matrix.upstream_repo }}
- name: Fetch upstream
run: git fetch upstream
- name: Fetch origin
Expand All @@ -61,7 +64,7 @@ jobs:
git config --global user.name "Jito Infrastructure"
- name: Rebase
id: rebase
run: git rebase ${{ matrix.rebase }}
run: git rebase upstream/${{ matrix.upstream_branch }}
- name: Send warning for rebase error
if: failure() && steps.rebase.outcome == 'failure'
uses: slackapi/[email protected]
Expand Down