Skip to content

Commit ab2eb8e

Browse files
committed
Revert "Fix readme_sync.yml (#8506)"
This reverts commit 653ae2f.
1 parent c17477f commit ab2eb8e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/readme_sync.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,9 @@ jobs:
4545
id: version-getter
4646
run: |
4747
VERSION="$(hatch version | cut -d '.' -f 1,2)"
48-
# The first stable documentation on Readme for a version is created when
49-
# the first x.x.0 version is released.
50-
# Up until that point we need to push to an "-unstable" suffixed version.
51-
# This also means that following RCs for patch releases are pushed to the
52-
# stable docs, for the time being we're ok with that.
53-
# `main` branch docs will be handled correctly too and get pushed to an
54-
# unstable documentation.
55-
IS_UNSTABLE=$(hatch version | grep -v -q "0-rc")
56-
if [ "$IS_UNSTABLE" ]; then
48+
CURRENT_BRANCH="${{ github.ref_name }}"
49+
# If we're on `main` branch we should push docs to the unstable version
50+
if [ "$CURRENT_BRANCH" = "main" ]; then
5751
VERSION="$VERSION-unstable"
5852
fi
5953
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)