기사 링크 - "한국, 이주노동자 사람으로 대하는 걸 손해라고 생각" #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Force delete unauthorized writer's issue | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
close-issue: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- if: github.event.issue.user.login != github.repository_owner | |
name: Delete Issue | |
run: gh issue delete $NUMBER --yes | |
env: | |
#GH_TOKEN: ${{ github.token }} | |
GH_TOKEN: ${{ secrets.ISSUE_CLOSE_TOKEN }} # admin role for delet | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.issue.number }} | |
#uses: peter-evans/[email protected] | |
#with: | |
# close-reason: not_planned | |
# comment: only the owner can post. |