Skip to content

Commit

Permalink
chore(actions): Add rebase actions
Browse files Browse the repository at this point in the history
  • Loading branch information
reemo3dp committed Apr 7, 2024
1 parent 3aa9e71 commit d067a5d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rebase-main-ontop-upstream-develop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rebase main ontop upstream-develop
on:
workflow_dispatch:
push:
branches:
- upstream-develop

jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Try rebase
run: |
set -euxo pipefail
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git rebase upstream-develop
git push origin HEAD:main --force-with-lease
22 changes: 22 additions & 0 deletions .github/workflows/rebase-upstream-develop-ontop-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rebase upstream-develop ontop upstream/develop
on:
workflow_dispatch:
cron: '0 6 * * 1'

jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: upstream-develop
- name: Try rebase
run: |
set -euxo pipefail
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git remote add upstream https://github.com/julianschill/klipper-led_effect.git
git fetch upstream
git rebase upstream/develop
git push origin HEAD:upstream-develop --force-with-lease

0 comments on commit d067a5d

Please sign in to comment.