allow latest removal to fail

This commit is contained in:
jspijker 2023-02-28 13:53:14 +01:00
parent d072942eb8
commit 9cf3c2dd62
2 changed files with 19 additions and 11 deletions

View File

@ -126,13 +126,15 @@ jobs:
run: conan create . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} --build=missing --update -o ${{ needs.conan-recipe-version.outputs.project_name }}:devtools=True
- name: Remove the latest alias
if: ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
run: |
conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura -f
conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura-ce -f
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
run: conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura -f
- name: Remove the latest alias from cura-ce
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
run: conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura-ce -f
- name: Create the latest alias
if: ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' && always() }}
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
run: conan alias ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
- name: Upload the Package(s)

View File

@ -89,13 +89,19 @@ jobs:
run: conan export . ${{ inputs.recipe_id_full }}
- name: Remove the latest alias
if: ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
run: |
conan remove ${{ inputs.recipe_id_latest }} -r cura -f
conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
run: conan remove ${{ inputs.recipe_id_latest }} -r cura -f
- name: Remove the latest alias from cura-ce
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
run: conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f
- name: Create the latest alias
if: ${{ inputs.recipe_id_latest != '' && always() }}
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
- name: Create the latest alias
if: always() && ${{ inputs.recipe_id_latest != '' }}
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
- name: Upload the Package(s)
@ -103,5 +109,5 @@ jobs:
run: conan upload "*" -r cura --all -c
- name: Upload the Package(s) community
if: ${{ always() && inputs.conan_upload_community == true }}
if: always() && ${{ inputs.conan_upload_community == true }}
run: conan upload "*" -r cura-ce -c