在Github中发布操作时未调用可重用工作流



我希望有人能帮助我解决这个github行动问题。

我正在尝试设置一个github动作管道来解析一些标签并调用另一个可重用的工作流。

代码如下:

name: release per tag
on:
release:
types: [ published ]
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write

jobs:
get_project_folder:
name: "Find project folder"
runs-on: ubuntu-latest
outputs:
project_folder: ${{ steps.regex-match.outputs.name }}
steps:
- id: regex-match
uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.event.release.tag_name }}
regex: '.*(?=-)'
- id: to-variable
run: echo "::set-output name=project_name::${{ steps.regex-match.outputs.match }}"
build_release_package:
name: "Invoke standard release tag yaml"
uses: ./.github/workflows/standard_release_tag.yaml
with:
project_name: ${{ needs.get_project_folder.outputs.project_folder }}
environment: Production
secrets:
INSTALL_PKG_PAT: ${{ secrets.INSTALL_PKG_PAT }}
HOST_URL: ${{ secrets.HOST_URL }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ENV: prod

不知何故,这个管道无法调用standard_release_tag。即使它存在于存储库中。

这事发生在谁身上了吗?我用谷歌搜索,但只看到这种情况发生在不同的触发事件,并由Github团队修复。

谢谢。

通过验证管道正在调用旧版本的yaml管道来解决。

最新更新