From 7b19e99ed73faea99c35d49a611187ba1a5c8c73 Mon Sep 17 00:00:00 2001 From: hiyouga <467089858@qq.com> Date: Sat, 13 Jul 2024 22:31:15 +0800 Subject: [PATCH] update workflows --- .github/workflows/label_issue.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label_issue.yml b/.github/workflows/label_issue.yml index ffd644a7..ce7359ab 100644 --- a/.github/workflows/label_issue.yml +++ b/.github/workflows/label_issue.yml @@ -9,6 +9,9 @@ jobs: label_issue: runs-on: ubuntu-latest + permissions: + issues: write + steps: - env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -16,7 +19,7 @@ jobs: ISSUE_TITLE: ${{ github.event.issue.title }} run: | LABEL=pending - NPU_KEYWORDS=(npu ascend huawei 华为 昇腾) + NPU_KEYWORDS=(npu huawei ascend 华为 昇腾) ISSUE_TITLE_LOWER=$(echo $ISSUE_TITLE | tr '[:upper:]' '[:lower:]') for KEYWORD in ${NPU_KEYWORDS[@]}; do if [[ $ISSUE_TITLE_LOWER == *$KEYWORD* ]] && [[ $ISSUE_TITLE_LOWER != *input* ]]; then