protect_files.yml 500 B

1234567891011121314151617181920212223
  1. name: Protect write-access files from being PR'd
  2. on:
  3. pull_request_target:
  4. types:
  5. - opened
  6. branches:
  7. - development
  8. paths:
  9. - '.github/'
  10. - '.editorconfig'
  11. - 'CODE_OF_CONDUCT.md'
  12. - 'CONTRIBUTING.md'
  13. - 'LICENSE'
  14. jobs:
  15. run:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: superbrothers/close-pull-request@v3
  19. with:
  20. comment: "This PR has been closed for modifying protected files. See `CONTRIBUTING.md` for more information."