Skip to content

feat: 网易云游戏 局部广告-卡片广告 #489

feat: 网易云游戏 局部广告-卡片广告

feat: 网易云游戏 局部广告-卡片广告 #489

name: check_fix_push
on:
push:
branches:
- '**'
permissions: write-all
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
check:
runs-on: ubuntu-latest
if: |
${{ github.event.head_commit.message!='chore(actions): check_format_lint' }}
steps:
- name: 检出仓库代码
uses: actions/checkout@v5
- name: 配置 Node.js 运行环境
uses: actions/setup-node@v5
with:
node-version: 25
package-manager-cache: false
- name: 启用 corepack 并安装 pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- 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 }}