ci: fix doc label task on forked repo (#654)

This commit is contained in:
Ning Sun
2022-11-30 11:23:15 +08:00
committed by GitHub
parent 020b9936cd
commit 84c44cf540

View File

@@ -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 }}