mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 03:32:36 +02:00
Auto Rebase Github Action (#3774)
* Auto Rebase Github Action * Update .github/workflows/rebase.yml Place env at the beginning of job. Co-authored-by: Tim Buckley <timothypbuckley@gmail.com> Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
This commit is contained in:
22
.github/workflows/rebase.yml
vendored
Normal file
22
.github/workflows/rebase.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
|
||||||
|
name: Automatic Rebase
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
rebase:
|
||||||
|
name: Rebase
|
||||||
|
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Automatic Rebase
|
||||||
|
uses: cirrus-actions/rebase@1.3.1
|
Reference in New Issue
Block a user