We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4132fa9 commit 6c2278dCopy full SHA for 6c2278d
1 file changed
.github/workflows/regenerate.yml
@@ -18,6 +18,8 @@ jobs:
18
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
19
with:
20
token: ${{ steps.app-token.outputs.token }}
21
+ fetch-depth: 0
22
+ fetch-tags: true
23
24
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
25
@@ -40,7 +42,8 @@ jobs:
40
42
id: pkg
41
43
run: |
44
python3 -m pip install --quiet bump-my-version
- bump-my-version bump patch --no-commit --no-tag --allow-dirty
45
+ current_version=$(python3 -c "import tomllib,pathlib; print(tomllib.loads(pathlib.Path('pyproject.toml').read_text())['project']['version'])")
46
+ bump-my-version bump patch --current-version "$current_version" --no-commit --no-tag --allow-dirty
47
version=$(bump-my-version show current_version)
48
echo "version=$version" >> "$GITHUB_OUTPUT"
49
0 commit comments