Skip to content

Commit 3d64a6c

Browse files
vdusekclaude
andcommitted
fix: quote shell variables in release workflow to satisfy shellcheck
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 375efaa commit 3d64a6c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/manual_release_stable.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,15 @@ jobs:
145145
- name: Snapshot the current version
146146
run: |
147147
cd website
148-
VERSION=$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")
149-
export MAJOR_MINOR=$(echo $VERSION | cut -d. -f1-2)
150-
rm -rf versioned_docs/version-$MAJOR_MINOR
151-
rm -rf versioned_sidebars/version-$MAJOR_MINOR-sidebars.json
148+
VERSION="$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")"
149+
MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
150+
export MAJOR_MINOR
151+
rm -rf "versioned_docs/version-${MAJOR_MINOR}"
152+
rm -rf "versioned_sidebars/version-${MAJOR_MINOR}-sidebars.json"
152153
jq 'map(select(. != env.MAJOR_MINOR))' versions.json > tmp.json && mv tmp.json versions.json
153154
bash build_api_reference.sh
154-
npx docusaurus docs:version $MAJOR_MINOR
155-
npx docusaurus api:version $MAJOR_MINOR
155+
npx docusaurus docs:version "$MAJOR_MINOR"
156+
npx docusaurus api:version "$MAJOR_MINOR"
156157
157158
- name: Commit and push the version snapshot
158159
uses: EndBug/add-and-commit@v9

0 commit comments

Comments
 (0)