Skip to content

Commit

Permalink
refactor: make ref checkout for picasso scripts configurable
Browse files Browse the repository at this point in the history
This change makes the use of versions different than default possible,
so the code available matches the version of the workflow used.
  • Loading branch information
mariajgrimaldi committed Nov 19, 2024
1 parent b537848 commit f6de871
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -89,6 +94,7 @@ jobs:
- name: Install necessary requirements for workflow scripts
working-directory: ${{ github.workspace }}
run: |
ls picasso/requirements
pip install -r picasso/requirements/base.txt
- name: Get Tutor Configurations from config.yml and set them as an environment variable
Expand Down

0 comments on commit f6de871

Please sign in to comment.