Skip to content

Commit

Permalink
Update issues.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep-Dark-Forest authored Jan 26, 2025
1 parent 9ed576e commit 5362876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5362876

Please sign in to comment.