Skip to content

Commit

Permalink
ci: automatic rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Realiserad committed Oct 17, 2024
1 parent bbf2c56 commit 878b0e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rebase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Automatic rebase
on:
issue_comment:
types: [created]
jobs:
rebase:
name: Rebase PR
runs-on: ubuntu-latest
if: >-
github.event.issue.pull_request != '' &&
(
contains(github.event.comment.body, '/rebase') ||
contains(github.event.comment.body, '/autosquash')
)
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.TOKEN }}
fetch-depth: 0
- uses: cirrus-actions/rebase@1.8
with:
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

0 comments on commit 878b0e3

Please sign in to comment.