File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments