From a3f6d3181ceded36513b49a3003d6c3f52219112 Mon Sep 17 00:00:00 2001 From: SciLor Date: Wed, 14 Aug 2024 20:04:58 +0000 Subject: [PATCH] another fix attempt with manual triggering --- .github/workflows/publish_docker_matrix.yml | 36 +++++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish_docker_matrix.yml b/.github/workflows/publish_docker_matrix.yml index 0addb087..b5531116 100644 --- a/.github/workflows/publish_docker_matrix.yml +++ b/.github/workflows/publish_docker_matrix.yml @@ -33,15 +33,31 @@ jobs: matrix_json=$(echo "$workflows" | tr ' ' '\n' | sed 's/^/"/;s/$/"/' | paste -sd, - | sed 's/^/[ /;s/$/ ]/') echo "matrix_json=$matrix_json" >> $GITHUB_ENV - trigger-workflows: - runs-on: ubuntu-latest - strategy: - matrix: - workflow: ${{ fromJson(needs.generate-workflows-list.outputs.matrix_json) }} - - steps: - - name: Trigger Workflow - uses: ./.github/workflows/${{ matrix.workflow }} + - name: Trigger Workflow Debian + uses: ./.github/workflows/publish_docker_matrix_debian.yml + with: + branch: ${{ github.ref_name }} # Passing the current branch name + secrets: inherit # Inherit secrets from the calling workflow + - name: Trigger Workflow Ubuntu + uses: ./.github/workflows/publish_docker_matrix_ubuntu.yml with: branch: ${{ github.ref_name }} # Passing the current branch name - secrets: inherit # Inherit secrets from the calling workflow \ No newline at end of file + secrets: inherit # Inherit secrets from the calling workflow + - name: Trigger Workflow Alpine + uses: ./.github/workflows/publish_docker_matrix_alpine.yml + with: + branch: ${{ github.ref_name }} # Passing the current branch name + secrets: inherit # Inherit secrets from the calling workflow + +# trigger-workflows: +# runs-on: ubuntu-latest +# strategy: +# matrix: +# workflow: ${{ fromJson(needs.generate-workflows-list.outputs.matrix_json) }} + +# steps: +# - name: Trigger Workflow ${{ matrix.workflow }} +# uses: ./.github/workflows/${{ matrix.workflow }} +# with: +# branch: ${{ github.ref_name }} # Passing the current branch name +# secrets: inherit # Inherit secrets from the calling workflow \ No newline at end of file