[插件] 缺来源测试 #2
This file contains hidden or 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: check-submit | |
| on: | |
| issues: | |
| types: [opened, edited] | |
| issue_comment: | |
| types: [created] | |
| concurrency: | |
| group: submit-${{ github.event.issue.number }} | |
| cancel-in-progress: true | |
| permissions: | |
| issues: write | |
| contents: read | |
| jobs: | |
| validate-submission: | |
| # 仅处理带 plugin-submission 标签的投稿 issue;PR/issue 下 /recheck 可手动复检 | |
| if: | | |
| contains(join(github.event.issue.labels.*.name, ','), 'plugin-submission') && | |
| (github.event_name == 'issues' || | |
| (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/recheck'))) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: node scripts/intake.mjs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |