forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scaffold a workflow to handle automated rebasing of changes and catch…
… problems earlier (#1074)
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 'Sync main branch with upstream' | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
sync-with-upstream: | ||
runs-on: ubuntu-latest | ||
name: Sync main branch with upstream | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Configure git | ||
run: | | ||
git config --global user.name "shiftbot" | ||
git config --global user.email "[email protected]" | ||
git remote add upstream https://github.com/desktop/desktop.git | ||
shell: bash | ||
- name: Push development changes from upstream to fork | ||
id: sync-development-branch | ||
run: | | ||
git fetch upstream development | ||
git fetch origin development | ||
git checkout -b development upstream/development | ||
git push origin development | ||
shell: bash | ||
- name: Rebase Linux customizations on top of development branch | ||
id: rebase-linux-branch | ||
run: | | ||
git fetch origin linux | ||
git checkout linux | ||
git rebase development linux | ||
git status | ||
git log development...linux --oneline | ||
shell: bash | ||
# TODO: force push this when we're confident that the rebase has succeeded? |