Allow for a bool to only build from local cache

This is a workaround to allow further development of this Action
until we have the JFrog server up and running.

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-06-16 06:14:05 +02:00 committed by Jelle Spijker
parent e1fcca3d9c
commit ce790c9da9
2 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ on:
type: string
# FIXME: Once we have the new JFrog server up and running
conan_no_update:
conan_update:
required: false
type: boolean
@ -80,14 +80,14 @@ jobs:
key: ${{ runner.os }}-conan
- name: Create the Packages
if: ${{ inputs.conan_no_update != 'true' }} # FIXME: Once we have the new JFrog server up and running
if: ${{ inputs.conan_update != 'false' }} # FIXME: Once we have the new JFrog server up and running
run: conan install ${{ inputs.recipe_id_full }} -pr:b cura_build.jinja -pr:h cura_release.jinja --build=missing --update
# FIXME: Once we have the new JFrog server up and running
- name: Create the Packages
if: ${{ inputs.conan_no_update == 'true' }}
if: ${{ inputs.conan_update == 'false' }}
run: conan install ${{ inputs.recipe_id_full }} -pr:b cura_build.jinja -pr:h cura_release.jinja --build=missing
- name: Upload the Package(s)
if: ${{ inputs.conan_no_update == 'true' }} # FIXME: Once we have the new JFrog server up and running
if: ${{ inputs.conan_update != 'false' }} # FIXME: Once we have the new JFrog server up and running
run: conan upload "*" -r ultimaker --all -c

View file

@ -28,7 +28,7 @@ on:
type: string
# FIXME: Once we have the new JFrog server up and running
conan_no_update:
conan_update:
required: false
type: boolean
@ -81,5 +81,5 @@ jobs:
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
- name: Upload the Package(s)
if: ${{ inputs.conan_no_update == 'true' }} # FIXME: Once we have the new JFrog server up and running
if: ${{ inputs.conan_update != 'false' }} # FIXME: Once we have the new JFrog server up and running
run: conan upload "*" -r ultimaker --all -c