Call create package workflow directly

This commit is contained in:
Erwan MATHIEU 2024-06-06 09:22:04 +02:00
parent d3e10aff83
commit f351dd2aba

View File

@ -90,80 +90,39 @@ jobs:
create-dependencies-packages: create-dependencies-packages:
name: Create conan packages for dependencies name: Create conan packages for dependencies
runs-on: ubuntu-latest uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action
needs: [parse-version, prepare-cura-repo] needs: [parse-version, prepare-cura-repo]
strategy: strategy:
matrix: matrix:
repository: [Cura, Uranium, CuraEngine, Cura-binary-data, fdm_materials] repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials]
include: include:
- conan_recipe_root: "." - conan_recipe_root: "."
- repository: Cura - repository: Cura
conan_recipe_root: "resources" conan_recipe_root: "resources"
steps:
- name: Call external create package
id: dispatch-create-action
uses: Codex-/return-dispatch@v1.14.0
with: with:
owner: Ultimaker repository: ${{ matrix.repository }}
repo: Cura-workflows 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 }}
token: ${{ secrets.CURA_AUTORELEASE_PAT }} token: ${{ secrets.CURA_AUTORELEASE_PAT }}
workflow: conan-package-release.yml
ref: CURA-10769_automate_release_action
workflow_inputs: |
{
"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 }}"
}
- name: Wait for package creation completion
uses: Codex-/await-remote-run@v1.12.2
with:
owner: Ultimaker
repo: Cura-workflows
token: ${{ secrets.CURA_AUTORELEASE_PAT }}
run_id: ${{ steps.dispatch-create-action.outputs.run_id }}
run_timeout_seconds: 1800
create-cura-package: create-cura-package:
name: Create conan packages for Cura name: Create conan package for Cura
runs-on: ubuntu-latest uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action
needs: [parse-version, create-dependencies-packages] needs: [parse-version, create-dependencies-packages]
steps:
- name: Call external create package
id: dispatch-create-action
uses: Codex-/return-dispatch@v1.14.0
with: with:
owner: Ultimaker repository: Cura
repo: Cura-workflows ref_name: ${{ needs.parse-version.outputs.branch_name }}
token: ${{ secrets.CURA_AUTORELEASE_PAT }} version: ${{ inputs.cura_version }}
workflow: conan-package-release.yml conan_release: true
ref: CURA-10769_automate_release_action conan_user_channel: ultimaker/stable
workflow_inputs: | conan_internal: false
{ conan_latest: true
"repository": "Cura", secrets: inherit
"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 }}"
}
- name: Wait for package creation completion
uses: Codex-/await-remote-run@v1.12.2
with:
owner: Ultimaker
repo: Cura-workflows
token: ${{ secrets.CURA_AUTORELEASE_PAT }}
run_id: ${{ steps.dispatch-create-action.outputs.run_id }}
run_timeout_seconds: 3600
create-installers: create-installers:
name: Create installers name: Create installers