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 28, 2025
1 parent 1664fcf commit b6a2a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Set up authentication
run: echo "GITHUB_TOKEN=${{ secrets.SHEEP }}" >> $GITHUB_ENV
run: echo "GITHUB_TOKEN=${{ secrets.BOT }}" >> $GITHUB_ENV

- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
Expand All @@ -22,13 +22,13 @@ jobs:
run: |
if [[ "${{ github.event.label.name }}" == "❌ 拒绝" || "${{ github.event.label.name }}" == "😂 移交上游" ]]; then
curl -X PATCH \
-H "Authorization: token ${{ secrets.SHEEP }}" \
-H "Authorization: token ${{ secrets.BOT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \
-d '{"state": "closed", "state_reason": "not_planned"}'
elif [[ "${{ github.event.label.name }}" == "👌 完成" ]]; then
curl -X PATCH \
-H "Authorization: token ${{ secrets.SHEEP }}" \
-H "Authorization: token ${{ secrets.BOT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \
-d '{"state": "closed", "state_reason": "completed"}'
Expand Down

0 comments on commit b6a2a1c

Please sign in to comment.