Skip to content

Commit

Permalink
Add automatic rebase action for openHAB branches
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed May 17, 2021
1 parent e6b5b80 commit fb27d31
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/rebase-action.yml
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

0 comments on commit fb27d31

Please sign in to comment.