From 84c44cf540dab427a75682ef9afb65ec47acf17e Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Wed, 30 Nov 2022 11:23:15 +0800 Subject: [PATCH] ci: fix doc label task on forked repo (#654) --- .github/workflows/doc-issue.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/doc-issue.yml b/.github/workflows/doc-issue.yml index b797ddb6c4..82c4f110c5 100644 --- a/.github/workflows/doc-issue.yml +++ b/.github/workflows/doc-issue.yml @@ -4,7 +4,7 @@ on: issues: types: - labeled - pull_request: + pull_request_target: types: - labeled @@ -19,7 +19,8 @@ jobs: owner: GreptimeTeam repo: docs token: ${{ secrets.DOCS_REPO_TOKEN }} - title: Update docs for {{ github.event.issue.title }} + title: Update docs for ${{ github.event.issue.title || github.event.pull_request.title }} body: | - A document change request is generated from ${{ github.event.issue.html_url }} - assignees: ${{ github.event.issue.user.login }} + A document change request is generated from + ${{ github.event.issue.html_url || github.event.pull_request.html_url }} + assignees: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}