mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-02-04 04:43:10 +00:00
fix(workflow): 修复低级错误
This commit is contained in:
parent
609c910d5a
commit
1d7e9cb6d8
5
.github/workflows/build-and-pr.yml
vendored
5
.github/workflows/build-and-pr.yml
vendored
@ -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.'
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user