community-pr-check.yml 653 B

123456789101112131415161718192021222324
  1. name: Community PR Check
  2. on:
  3. pull_request_target:
  4. paths:
  5. - 'COMMUNITY.md'
  6. types: [opened, synchronize, reopened]
  7. permissions:
  8. contents: read
  9. pull-requests: write
  10. jobs:
  11. check:
  12. runs-on: ubuntu-latest
  13. steps:
  14. # 安全说明:只checkout本仓库main上的脚本,绝不checkout也不执行PR的代码
  15. - uses: actions/checkout@v4
  16. - name: Run community inclusion checks
  17. env:
  18. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  19. GITHUB_REPOSITORY: ${{ github.repository }}
  20. PR_NUMBER: ${{ github.event.pull_request.number }}
  21. run: python3 .github/scripts/community_check.py