fix rebase workflow

This commit is contained in:
Carter Anderson 2021-02-01 12:23:18 -08:00 committed by GitHub
parent 32114c1ca8
commit 7095dfe4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,8 @@ on:
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')
# ideally "cart" isn't hard coded here, but there is a bug that prevents org-owned repos from properly populating the OWNER enum
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.user.login == 'cart')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
@ -18,4 +19,4 @@ jobs:
# 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 }}
GITHUB_TOKEN: ${{ secrets.CART_PAT }}