Skip to content

Commit

Permalink
add rebase cmd action
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Aug 6, 2024
1 parent d0193ff commit 831ea8f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rebase_command.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automatic Rebase
on:
issue_comment:
types: [created]
jobs:
rebase:
name: Rebase
runs-on: ubuntu-latest
if: >-
github.event.issue.pull_request != '' &&
(
contains(github.event.comment.body, '/rebase')
)
steps:
- name: Checkout the latest code
uses: actions/checkout@v
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
with:
autosquash: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 831ea8f

Please sign in to comment.