mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-28 13:43:05 +03:00
🏗️ Adds action for easy PR rebasing
This commit is contained in:
parent
633dc7ee0c
commit
6c421e0b07
23
.github/workflows/auto-rebase-pr.yml
vendored
Normal file
23
.github/workflows/auto-rebase-pr.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# When a '/rebase' comment is added to a PR, it will be rebased from the main branch
|
||||
name: 🏗️ Automatic PR Rebase
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
jobs:
|
||||
rebase:
|
||||
name: Rebase
|
||||
if: >
|
||||
github.event.issue.pull_request != ''
|
||||
&& contains(github.event.comment.body, '/rebase')
|
||||
&& github.event.comment.author_association == 'MEMBER'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||
fetch-depth: 0
|
||||
- name: Rebase
|
||||
uses: cirrus-actions/rebase@1.4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user