Skip to content

Commit

Permalink
add rebase action (bevyengine#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Feb 1, 2021
1 parent 6b8f8a7 commit 32114c1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Automatic 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' || github.event.comment.author_association == 'OWNER')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
with:
token: ${{ secrets.TOKEN }}
persist-credentials: false
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
# this specific hash was hand-validated by @cart. please validate new action code before updating
uses: cirrus-actions/rebase@b08442cca46e2ad6c1f3dd24a3320ece8498df75
env:
GITHUB_TOKEN: ${{ secrets.CART_PAT }}

0 comments on commit 32114c1

Please sign in to comment.