Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaszdunov committed Jun 2, 2024
1 parent 356529e commit 807de35
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/Publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
Setup-Dckerfiles:
setup:
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -39,22 +39,6 @@ jobs:

- name: Create Dockerfiles of Python Images
run: python ./src/parse.py

- uses: actions/upload-artifact@master
with:
name: my-artifact
path: /Python_dockerfiles


matrix_input:
needs: Setup-Dckerfiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@master
with:
name: my-artifact
path: /Python_dockerfiles
- uses: danyow/[email protected]
id: array
with:
Expand All @@ -63,13 +47,13 @@ jobs:
outputs:
param: ${{ steps.array.outputs.build }}

dynamic_matrix:
needs:
- matrix_input
matrix_input:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
param: ${{ fromJson(needs.matrix_input.outputs.param) }}
runs-on: ubuntu-latest
param: ${{ fromJson(needs.setup.outputs.param) }}
steps:
- run: |
echo ${{ matrix.param }}
echo ${{ matrix.param }}

0 comments on commit 807de35

Please sign in to comment.