Skip to content

Commit 349057c

Browse files
authored
Merge pull request #7 from commitizen-tools/fix/cache
fix: remove unnecessary cache input
2 parents f29fe97 + 5962c48 commit 349057c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

action.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ inputs:
99
extra_requirements:
1010
description: "Install extra dependencies"
1111
required: false
12-
cache:
13-
description: 'Cache python setup, set to "true" to enable'
14-
required: false
15-
default: "false"
1612

1713
branding:
1814
icon: "anchor"
@@ -21,6 +17,7 @@ branding:
2117
runs:
2218
using: "composite"
2319
steps:
20+
- uses: actions/setup-python@v6
2421
- id: set-vars
2522
shell: python
2623
env:
@@ -36,20 +33,9 @@ runs:
3633
else:
3734
set_commitizen_version = f"=={commitizen_version}"
3835
39-
# Set python cache
40-
cache = os.environ.get("CACHE", "")
41-
if cache == True or cache == "true":
42-
set_cache = "pip"
43-
else:
44-
set_cache = ""
45-
4636
# Write outputs
4737
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
4838
fh.write(f"COMMITIZEN_VERSION={set_commitizen_version}\n")
49-
fh.write(f"PYTHON_CACHE={set_cache}\n")
50-
- uses: actions/setup-python@v6
51-
with:
52-
cache: ${{ steps.set-vars.outputs.PYTHON_CACHE }}
5339
- name: Install commitizen
5440
shell: bash
5541
env:

0 commit comments

Comments
 (0)