From 7b491213245002a2335196def7dce239f00e7d30 Mon Sep 17 00:00:00 2001 From: Zois Pagoulatos Date: Tue, 13 Oct 2020 08:57:34 +0200 Subject: [PATCH] [FIX] Update auto-author-assign action to work with forks (#97) --- .github/workflows/auto-author-assign.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index c292349..b505487 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -1,12 +1,14 @@ name: 'Auto Author Assign' on: - pull_request: + pull_request_target: types: [opened, reopened] jobs: add-assignees: runs-on: ubuntu-latest steps: - - name: auto-author-assign - uses: toshimaru/auto-author-assign@v1.1.2 + - uses: actions/checkout@v2 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + ref: refs/pull/${{ github.event.pull_request.number }}/head + - uses: toshimaru/auto-author-assign@v1.2.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"