Skip to content

chore: 更新仓库URL并添加发布配置和开发依赖 #4

chore: 更新仓库URL并添加发布配置和开发依赖

chore: 更新仓库URL并添加发布配置和开发依赖 #4

name: Publish Release
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish-release:

Check failure on line 9 in .github/workflows/publish-release.yml

View workflow run for this annotation

GitHub Actions / Publish Release

Invalid workflow file

The workflow is not valid. .github/workflows/publish-release.yml (Line: 9, Col: 3): Error calling workflow 'GameFrameX/public-github-actions/.github/workflows/publish-release.yml@main'. The workflow is requesting 'actions: read, checks: write, contents: write, packages: write', but is only allowed 'actions: none, checks: none, contents: read, packages: read'.
# 引用外部仓库的可重用工作流
# 权限由外部工作流统一配置,无需在调用方声明
uses: GameFrameX/public-github-actions/.github/workflows/publish-release.yml@main
with:
# 传递tag名称给外部工作流
tag_name: ${{ github.ref_name }}
# 传递仓库名称
repository_name: ${{ github.repository }}
# 组织级别已配置密钥,可以使用 inherit 继承所有密钥
secrets: inherit