From 347cb62b63804e91429a0fce92a581d68735b450 Mon Sep 17 00:00:00 2001 From: 0xSage Date: Fri, 1 Dec 2023 14:35:04 +0800 Subject: [PATCH] fix --- .github/workflows/auto-label-conventional-commits.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-label-conventional-commits.yaml b/.github/workflows/auto-label-conventional-commits.yaml index 6427be40b..f752fa4a3 100644 --- a/.github/workflows/auto-label-conventional-commits.yaml +++ b/.github/workflows/auto-label-conventional-commits.yaml @@ -17,11 +17,11 @@ jobs: steps: - name: Label issues run: | - ISSUE_TITLE=$(gh issue view "$NUMBER" --json title -q ".title") + ISSUE_TITLE=$(gh issue view ${{ github.event.number }} --json title -q ".title") if [[ $ISSUE_TITLE == chore:* ]]; then - gh issue edit "$NUMBER" --add-label "type: chore" - elif [[ $ISSUE_TITLE == feat* ]]; then - gh issue edit "$NUMBER" --add-label "type: feat" + gh issue edit ${{ github.event.number }} --add-label "type: chore" + elif [[ $ISSUE_TITLE == feat:* ]]; then + gh issue edit ${{ github.event.number }} --add-label "type: feat" fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}