Skip to content

refactor: Update Youdao Note task text match #3

refactor: Update Youdao Note task text match

refactor: Update Youdao Note task text match #3

name: check_fix_push
on:
push:
branches:
- '**'
permissions: write-all
jobs:
check:
runs-on: ubuntu-latest
if: |
${{ github.event.head_commit.message!='chore(actions): check_format_lint' }}
steps:
- name: 检出仓库代码
uses: actions/checkout@v4
- name: 配置 Node.js 运行环境
uses: actions/setup-node@v4
with:
node-version: 22
- name: 配置 pnpm 包管理器
uses: pnpm/action-setup@v4
- name: 安装项目依赖
run: pnpm install
- name: 执行项目检查
run: pnpm run check
- name: 执行代码格式化
run: pnpm run format
- name: 执行代码静态检查
run: pnpm run lint
- name: 提交自动修复结果
id: commit
run: |
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git status --porcelain
git --no-pager diff
git commit -a -m "chore(actions): check_format_lint"
continue-on-error: true
- name: 推送修复后的代码
uses: ad-m/github-push-action@master
if: ${{ steps.commit.outcome == 'success' }}
with:
branch: ${{ github.ref }}