![](/img/trans.png)
[英]How to pass a parameterized secret to a reusable GitHub Action workflow?
[英]Reusable workflow not being invoked on release action in 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.yaml。
这是发生在任何人身上的事吗? 我用谷歌搜索,但只看到发生了不同的触发事件,并由 Github 团队修复。
谢谢。
通过验证管道正在调用旧版本的 yaml 管道来解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.