From 998c3f9f714e1917d0c435353bd96cdacda1a7bc Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Tue, 19 Nov 2024 10:19:52 +0100 Subject: [PATCH] refactor: make ref checkout for picasso scripts configurable This change makes the use of versions different than default possible, so the code available matches the version of the workflow used. --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dab9f6c..c3e9ccc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,11 @@ on: required: false type: string default: '3.12' + PICASSO_VERSION: + description: 'Picasso version to use for the workflow scripts and utility functions. This should be a valid branch, tag or commit and it should match the version of the workflow used.' + required: false + type: string + default: 'v1' secrets: DOCKERHUB_USERNAME: description: 'DockerHub username for login' @@ -70,7 +75,7 @@ jobs: uses: actions/checkout@v4 with: repository: edunext/picasso - ref: v1 + ref: ${{ inputs.PICASSO_VERSION }} path: picasso - name: Checkout strains repository for build configurations