Skip to content

Commit 1d324f1

Browse files
author
Sebastian Penhouet
committed
Add workflow environment and fix version parsing
1 parent ea8c86b commit 1d324f1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
release:
2525
name: Create and publish release
2626
runs-on: ubuntu-latest
27+
environment:
28+
name: release
29+
url: https://pypi.org/p/confluence-markdown-exporter
2730
permissions:
2831
contents: write
2932
id-token: write
@@ -50,7 +53,7 @@ jobs:
5053
- name: Update version (bump)
5154
if: ${{ github.event.inputs.custom_version == '' }}
5255
run: |
53-
NEW_VERSION=$(uv version --bump ${{ github.event.inputs.version_bump }} | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+.*')
56+
NEW_VERSION=$(uv version --bump ${{ github.event.inputs.version_bump }} | awk '{print $NF}')
5457
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
5558
5659
- name: Test build with new version

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "confluence-markdown-exporter"
7-
version = "3.0.3"
7+
version = "3.0.2"
88
description = "A tool to export Confluence pages to Markdown"
99
keywords = ["confluence", "atlassian", "markdown", "export", "convertion", "download"]
1010
readme = "README.md"

0 commit comments

Comments
 (0)