Skip to content

Commit 316b32b

Browse files
authored
ci: fix get-python-version step (#1)
renme python_version output to python-version
1 parent 10ac0f4 commit 316b32b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/autoupdate.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- name: Fetch latest Python 3.12 release
1919
id: get-python-version
2020
run: |
21-
python_version=$(curl -s https://www.python.org/ftp/python/ | grep -oP '3\.12\.\d+/' | uniq | sort -V | tail -n 1 | tr -d '/')
21+
python-version=$(curl -s https://www.python.org/ftp/python/ | grep -oP '3\.12\.\d+/' | uniq | sort -V | tail -n 1 | tr -d '/')
2222
23-
echo "python3.12: $python_version"
23+
echo "python3.12: $python-version"
2424
25-
echo ${python_version} > .python_version
26-
echo "python_version=${python_version}" >> $GITHUB_OUTPUT
25+
echo ${python_version} > .python-version
26+
echo "python-version=${python-version}" >> $GITHUB_OUTPUT
2727
2828
- name: Detect changes
2929
id: git-diff
@@ -42,8 +42,8 @@ jobs:
4242
run: |
4343
git add -u
4444
git commit \
45-
-m "release: ${{ steps.get-python-version.outputs.python_version }}"
45+
-m "release: ${{ steps.get-python-version.outputs.python-version }}"
4646
git tag \
47-
-a ${{ steps.get-python-version.outputs.python_version }} \
48-
-m "${{ steps.get-python-version.outputs.python_version }}"
47+
-a ${{ steps.get-python-version.outputs.python-version }} \
48+
-m "${{ steps.get-python-version.outputs.python-version }}"
4949
git push origin HEAD --tags

0 commit comments

Comments
 (0)