fix(workflow): 修复低级错误

This commit is contained in:
ElyPrism 2026-01-31 14:32:42 +08:00
parent 609c910d5a
commit 1d7e9cb6d8
No known key found for this signature in database

View File

@ -3,7 +3,7 @@ name: Build and Create PR
on:
workflow_dispatch: # 手动触发
push:
branches: [ main, pr/* ]
branches: [main, pr/*]
jobs:
build:
@ -78,6 +78,7 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
BRANCH_NAME="auto-build-$(date +%Y%m%d-%H%M%S)"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
git checkout -b $BRANCH_NAME
# 复制并整理下载的文件
@ -101,7 +102,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
title: 'Auto-build: Add compiled binaries for win, linux, macos',
head: `auto-build-${new Date().toISOString().slice(0, 19).replace(/[-:]/g, '').replace('T', '-')}`,
head: '${{ env.BRANCH_NAME }}',
base: 'main',
body: 'This PR contains newly built binaries for Windows, Linux, and macOS platforms.'
});