Skip to content

Commit

Permalink
another fix attempt with manual triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Aug 14, 2024
1 parent 31f6e7e commit a3f6d31
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/publish_docker_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit a3f6d31

Please sign in to comment.