Skip to content

Commit 73a33f4

Browse files
committed
only run pyton/r setup if true
1 parent af0a8fd commit 73a33f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

actions/deploy-quarto-static-site/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,27 @@ runs:
5656
### Install Python dependencies (to run any python for generating quarto content)
5757
# Note: assumes using `uv` for dependency management
5858
- name: Install uv
59-
if: ${{ inputs.uses-python }}
59+
if: ${{ inputs.uses-python == 'true' }}
6060
uses: astral-sh/setup-uv@v5
6161
with:
6262
enable-cache: true
6363
version: "0.6.x"
6464

6565
- name: Setup Python
66+
if: ${{ inputs.uses-python == 'true' }}
6667
uses: actions/setup-python@v5 # Use official because GH caches it
6768
with:
6869
python-version-file: "pyproject.toml"
6970

7071
- name: Install dependencies and activate virtual environment
72+
if: ${{ inputs.uses-python == 'true' }}
7173
shell: bash
7274
run: uv sync
7375

7476
### Install R dependencies (to run any R for generating quarto content)
7577
# Note: This is untested (I don't use R, so don't know if this is correct)
7678
- name: Setup R
77-
if: ${{ inputs.uses-r }}
79+
if: ${{ inputs.uses-r == 'true' }}
7880
uses: r-lib/actions/setup-r@v2
7981
############
8082

0 commit comments

Comments
 (0)