From b30fb9b3236a1a2361f5f16d8adf8a84006998c1 Mon Sep 17 00:00:00 2001 From: "sinu.eth" <65924192+sinui0@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:54:34 -0700 Subject: [PATCH] fix: rebase action condition (#168) * fix: rebase action condition * collapse to single line * add owner and collab conditions --- .github/workflows/rebase.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 26827dbd..e0e55111 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -7,12 +7,16 @@ jobs: name: Rebase runs-on: ubuntu-latest if: >- - github.event.issue.pull_request != '' && + github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && - github.event.comment.author_association == 'MEMBER' + ( + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' + ) steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo