From c93e3406cd19353a5717c1f3214b985befce83a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=B1=E9=BB=91=E6=A3=AE=E6=9E=97?= Date: Sun, 26 Jan 2025 11:02:57 +0800 Subject: [PATCH] Update issues.yml --- .github/workflows/issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 52f36a9f..beaafc00 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -42,12 +42,12 @@ jobs: -H "Authorization: token ${{ secrets.SHEEP }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \ - -d '{"labels": ['$new_labels']}' + -d '{"labels": ["'"$new_labels"'"]}' elif [[ "${{ github.event.issue.state_reason }}" == "completed" ]]; then new_labels="$existing_labels,👌 完成" curl -X PATCH \ -H "Authorization: token ${{ secrets.SHEEP }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \ - -d '{"labels": ['$new_labels']}' + -d '{"labels": ["'"$new_labels"'"]}' fi