1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +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:
Awasum Yannick
2020-07-31 13:18:31 +01:00
committed by GitHub
parent 1cf63f0a19
commit a180cc5300

22
.github/workflows/rebase.yml vendored Normal file
View 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