Skip to content

Commit d35d695

Browse files
committed
refactor: Include version number in docs versioning commit message
1 parent 465115e commit d35d695

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/manual_version_docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
run: uv run poe install-dev
7777

7878
- name: Snapshot the current version
79+
id: snapshot
7980
run: |
8081
cd website
8182
corepack enable
@@ -85,6 +86,7 @@ jobs:
8586
VERSION="$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")"
8687
MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
8788
MAJOR="$(echo "$VERSION" | cut -d. -f1)"
89+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
8890
echo "Version: $VERSION, Major.Minor: $MAJOR_MINOR, Major: $MAJOR"
8991
9092
# Find the existing version for this major in versions.json (if any).
@@ -122,7 +124,7 @@ jobs:
122124
uses: EndBug/add-and-commit@v10
123125
with:
124126
add: "website/versioned_docs website/versioned_sidebars website/versions.json"
125-
message: "docs: version docs [skip ci]"
127+
message: "docs: Version docs for v${{ steps.snapshot.outputs.version }} [skip ci]"
126128
default_author: github_actions
127129

128130
- name: Resolve output commitish

0 commit comments

Comments
 (0)