commit
e0014db7d2
|
@ -13,5 +13,15 @@ jobs:
|
||||||
- env:
|
- env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ISSUE_URL: ${{ github.event.issue.html_url }}
|
ISSUE_URL: ${{ github.event.issue.html_url }}
|
||||||
|
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||||
run: |
|
run: |
|
||||||
gh issue edit $ISSUE_URL --add-label "pending"
|
LABEL=pending
|
||||||
|
NPU_KEYWORDS=(npu 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
|
||||||
|
LABEL=pending,npu
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
gh issue edit $ISSUE_URL --add-label $LABEL
|
||||||
|
|
Loading…
Reference in New Issue