Skip to content

Commit fdfcb0e

Browse files
committed
Flexible hashing
1 parent 8842b03 commit fdfcb0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

create-and-cache/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
description: "Version of pixi to use for generating the lock file"
77
required: false
88
default: "latest"
9+
hash-files:
10+
description: "Files to use to generate the hash key for the lock file."
11+
required: false
12+
default: "{pixi.toml,pyproject.toml}"
913

1014
outputs:
1115
pixi-version:
@@ -23,7 +27,7 @@ runs:
2327
shell: bash
2428
run: |
2529
today=$(date +'%Y-%m-%d')
26-
key="pixi-lock_${{ inputs.pixi-version }}_${{ hashFiles('pixi.toml') }}_${today}"
30+
key="pixi-lock_${{ inputs.pixi-version }}_${{ hashFiles(inputs.hash-files) }}_${today}"
2731
echo "key=${key}" >> "$GITHUB_OUTPUT"
2832
2933
- name: Restore pixi.lock from cache

0 commit comments

Comments
 (0)