Skip to content

Commit

Permalink
Merge pull request #7028 from drew2a/fix/7026
Browse files Browse the repository at this point in the history
Add the `requirements-key` parameter to the pyenv GitHub Action
  • Loading branch information
drew2a authored Sep 1, 2022
2 parents eadfeef + 8258c8f commit fe1151b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/pyenv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ inputs:
description: 'The path to requirements.txt file'
required: false

requirements-key:
default: '**/requirements*.txt'
description: 'Requirements-files to use for building the cache key'
required: false

invalidate-cache:
default: 'false'
description: 'Force create a virtualenv'
Expand All @@ -32,7 +37,7 @@ runs:
uses: drew2a/restore-virtualenv@v1.2.1
id: cache-virtualenv
with:
requirement_files: ${{inputs.requirements}}
requirement_files: ${{inputs.requirements-key}}

- name: Invalidate cache
if: inputs.invalidate-cache == 'true'
Expand Down

0 comments on commit fe1151b

Please sign in to comment.