Skip to content

Commit d3b9f76

Browse files
committed
Fix caching in action
1 parent a2c562f commit d3b9f76

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

action.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ runs:
3939
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
4040
git config -l
4141
- name: Install Python
42-
uses: actions/setup-python@v5.4.0
42+
uses: actions/setup-python@v5
4343
with:
4444
python-version: '3.12'
45+
cache: 'pip'
4546
- name: Install bump-my-version
4647
shell: bash
4748
run: pip install "bump-my-version==1.0.2"
@@ -50,7 +51,7 @@ runs:
5051
shell: bash
5152
run: |
5253
echo "previous-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT
53-
54+
5455
bump-my-version bump ${{ inputs.args }}
5556
([[ $? -gt 0 ]] && echo "bumped=false" || echo "bumped=true") >> $GITHUB_OUTPUT
5657
echo "current-version=$(bump-my-version show current_version)" >> $GITHUB_OUTPUT

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ commit = true
262262
commit_args = "--no-verify"
263263
tag = true
264264
tag_name = "{new_version}"
265+
moveable_tags = [
266+
"v{new_major}",
267+
"v{new_major}.{new_minor}",
268+
]
265269
allow_dirty = true
266270
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<dev>post)\\d+\\.dev\\d+)?"
267271
serialize = [

0 commit comments

Comments
 (0)