Skip to content

Use reusable build workflow #2

Use reusable build workflow

Use reusable build workflow #2

name: Use reusable build workflow
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write # ✅ 必须加上,否则 release 上传会被拒绝
jobs:
call-build:
uses: HurleyKane/project_template/.github/workflows/template-python-build-release.yml@master

Check failure on line 14 in .github/workflows/test-template-release-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-template-release-build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/test-template-release-build.yml" -> "HurleyKane/project_template/.github/workflows/template-python-build-release.yml@master" (source branch with sha:0ebd47abdf770744c92512b988d4061270bee879) : (Line: 49, Col: 13): Unexpected symbol: '""'. Located at position 33 within expression: inputs.download-dependencies != "", (Line: 57, Col: 13): Unexpected symbol: '""'. Located at position 33 within expression: inputs.download-dependencies != ""
with:
python-version: '["3.11"]'
build-command: "python -m build"
download-dependencies: "https://gitlab.com/libeigen/eigen/-/archive/5.0.0/eigen-5.0.0.tar.gz"
download-dependencies-path: "third_party"
secrets:
caller_token: ${{ secrets.GITHUB_TOKEN }}