Skip to content

Commit e409fc1

Browse files
committed
cache-pixi-lock - pixi version from input
1 parent ac81305 commit e409fc1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/cache-pixi-lock.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Generate and cache Pixi lockfile
22

33
on:
44
workflow_call:
5+
inputs:
6+
pixi-version:
7+
type: string
58
outputs:
69
cache-id:
710
description: "The lock file contents"
@@ -30,7 +33,7 @@ jobs:
3033
- uses: prefix-dev/[email protected]
3134
if: ${{ !steps.restore.outputs.cache-hit }}
3235
with:
33-
pixi-version: v0.56.0
36+
pixi-version: ${{ inputs.pixi-version }}
3437
run-install: false
3538
- name: Run pixi lock
3639
if: ${{ !steps.restore.outputs.cache-hit }}

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
key: ${{ needs.cache-pixi-lock.outputs.cache-id }}
9393
- uses: prefix-dev/[email protected]
9494
with:
95+
pixi-version:
9596
cache: true
9697
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released
9798
- name: Integration test

0 commit comments

Comments
 (0)