From 7c435a1bd5f7007731963ebd712cd91329b07be4 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:01:13 +0200 Subject: [PATCH] Call dispatch in a step --- .../release-process_release-candidate.yml | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 4224af0cf3..3d05ac6d8a 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -90,34 +90,37 @@ jobs: create-dependencies-packages: name: Create conan packages for dependencies - #uses: mathze/workflow-dispatch-action@v1.3.0 + runs-on: ubuntu-latest needs: [parse-version, prepare-cura-repo] - run: echo coucou - #strategy: - #matrix: - #repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] - #include: - #- conan_recipe_root: "." - #- repository: Cura - #conan_recipe_root: "resources" - #with: - #owner: Ultimaker - #repo: Cura-workflows - #workflow-name: conan-package-release.yml - #use-marker-step: true - #ref: CURA-10769_automate_release_action - #token: ${{ secrets.CURA_AUTORELEASE_PAT }} - #payload: | - #{ - #"repository": "${{ matrix.repository }}", - #"ref_name": "${{ needs.parse-version.outputs.branch_name }}", - #"version": "${{ inputs.cura_version }}", - #"conan_release": true, - #"conan_user_channel": "ultimaker/stable", - #"conan_internal": false, - #"conan_latest": true, - #"conan_recipe_root": "${{ matrix.conan_recipe_root }}" - #} + strategy: + matrix: + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + include: + - conan_recipe_root: "." + - repository: Cura + conan_recipe_root: "resources" + steps: + call-create-package: + name: Call external create package + uses: mathze/workflow-dispatch-action@v1.3.0 + with: + owner: Ultimaker + repo: Cura-workflows + workflow-name: conan-package-release.yml + use-marker-step: true + ref: CURA-10769_automate_release_action + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + payload: | + { + "repository": "${{ matrix.repository }}", + "ref_name": "${{ needs.parse-version.outputs.branch_name }}", + "version": "${{ inputs.cura_version }}", + "conan_release": true, + "conan_user_channel": "ultimaker/stable", + "conan_internal": false, + "conan_latest": true, + "conan_recipe_root": "${{ matrix.conan_recipe_root }}" + } create-cura-package: name: Create conan package for Cura