issue-lockdown.yml 459 B

123456789101112131415161718192021
  1. name: Issue Lockdown
  2. on:
  3. issues:
  4. types: [opened]
  5. permissions:
  6. issues: write
  7. jobs:
  8. lockdown:
  9. name: Issue Lockdown
  10. if: vars.ISSUE_LOCKDOWN
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: "Lock new issue"
  14. env:
  15. GH_TOKEN: ${{ github.token }}
  16. ISSUE_NUMBER: ${{ github.event.issue.number }}
  17. REPOSITORY: ${{ github.repository }}
  18. run: |
  19. gh issue lock "${ISSUE_NUMBER}" -R "${REPOSITORY}"