Skip to content

Commit

Permalink
fix: Add git flow 2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkman authored Nov 15, 2024
1 parent 2a0eb2f commit ad9ec22
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,29 @@ on:
schedule:
- cron: "00 19 * * 1-5"
workflow_dispatch:
pull_request:
jobs:
git-sync-branches:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
- uses: actions/checkout@v4
with:
source_repo: "rpcpool/yellowstone-grpc"
destination_repo: "helius-labs/yellowstone-grpc"
source_branch: "refs/remotes/source/*"
destination_branch: "refs/heads/*"
git-sync-tags:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "rpcpool/yellowstone-grpc"
destination_repo: "helius-labs/yellowstone-grpc"
source_branch: "refs/remotes/source/*"
destination_branch: "refs/heads/*"
git-rebase:
runs-on: ubuntu-latest
steps:
- name: git-rebase
uses: tiacsys/git-rebase@v3
with:
repo: "rpcpool/yellowstone-grpc"
source_branch: "master"
destination_branch: "master"
ref: master
submodules: recursive
fetch-depth: 0
- name: Setup email
run: |
git config --global user.email "[email protected]"
git config --global user.name "Helius Infrastructure"
- name: Add upstream
run: git remote add upstream https://github.com/rpcpool/yellowstone-grpc
- name: Fetch upstream
run: git fetch --all --tags
- name: rebase master
run: git pull upstream master --rebase
- name: pull origin
run: git pull origin master
- name: push all
run: git push origin --all
- name: push tags
run: git push origin --tags

0 comments on commit ad9ec22

Please sign in to comment.