[歌词提交/修正] 双笙(陈元汐) - 我的一个道姑朋友 #1356
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: 检查歌词提交正确性 | |
on: | |
workflow_dispatch: | |
issues: | |
types: [opened] | |
concurrency: | |
group: check-submit | |
cancel-in-progress: true | |
jobs: | |
check-submit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: 签出代码 | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 安装 Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: yarn | |
cache-dependency-path: scripts/yarn.lock | |
- name: 安装依赖 | |
run: yarn | |
working-directory: scripts | |
- name: 运行检查程序 | |
timeout-minutes: 10 | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email 'github-actions@users.noreply.github.com' | |
yarn node ./run-submit-check.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: scripts |