-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic rebase action for openHAB branches
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
- Loading branch information
Showing
1 changed file
with
28 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,28 @@ | ||
name: Rebase | ||
|
||
on: push | ||
|
||
jobs: | ||
rebase: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v3 | ||
with: | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git-user-signingkey: true | ||
git-commit-gpgsign: true | ||
- name: Rebase openHAB branches | ||
run: | | ||
git config --global user.name 'Ethan Dye' | ||
git config --global user.email 'mrtops03@gmail.com' | ||
git fetch origin | ||
git checkout origin/openHAB | ||
git rebase origin/main | ||
git push --force-with-lease | ||
git checkout origin/openHAB2 | ||
git rebase origin/main | ||
git push --force-with-lease |