修复部分语法错误
This commit is contained in:
6
.github/workflows/python-app.yml
vendored
6
.github/workflows/python-app.yml
vendored
@@ -70,7 +70,7 @@ jobs:
|
|||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: AUTO_MAA_$(head -n 1 更新说明.txt)
|
name: "AUTO_MAA_$(head -n 1 更新说明.txt)"
|
||||||
path: |
|
path: |
|
||||||
data/**/*
|
data/**/*
|
||||||
gui/**/*
|
gui/**/*
|
||||||
@@ -101,7 +101,9 @@ jobs:
|
|||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
NAME="$(head -n 1 更新说明.txt)"
|
NAME="$(head -n 1 更新说明.txt)"
|
||||||
TAGNAME="$(head -n 1 更新说明.txt)"
|
TAGNAME="$(head -n 1 更新说明.txt)"
|
||||||
CONTENT="$(tail -n +2 更新说明.txt)\n\n```本release通过GitHub Actions自动构建```"
|
CONTENT_MAIN="$(tail -n +2 更新说明.txt)"
|
||||||
|
CONTENT_TAIL="```本release通过GitHub Actions自动构建```"
|
||||||
|
CONTENT="$CONTENT_MAIN\n\n$CONTENT_TAIL"
|
||||||
gh release create "$TAGNAME" --target "main" --title "$NAME" --description "$CONTENT" --artifact artifacts/*.{zip,tar.xz}
|
gh release create "$TAGNAME" --target "main" --title "$NAME" --description "$CONTENT" --artifact artifacts/*.{zip,tar.xz}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
Reference in New Issue
Block a user