Merge pull request #535 from andig/chore/rebase

Add rebase command
This commit is contained in:
andig 2020-12-19 19:50:19 +01:00
commit fb5200193a
2 changed files with 27 additions and 1 deletions

View file

@ -55,7 +55,9 @@ jobs:
publish:
name: Publish
if: "startsWith(github.ref, 'refs/heads/master')"
if: |
startsWith(github.ref, 'refs/heads/master')
&& ! contains(github.head_ref, 'refs/heads/chore/')
needs: build
runs-on: ubuntu-latest

24
.github/workflows/rebase.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: 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')
&& (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER')
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}