簡體   English   中英

Github 中的發布操作未調用可重用工作流

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM