Skip to content

Commit e5cc047

Browse files
committed
Fetch tags after clone to fix build public docs script
1 parent 70d952e commit e5cc047

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Clone Source Repository
1616
uses: actions/checkout@v3
1717

18+
- name: Fetch git tags
19+
run: git fetch --tags origin
20+
1821
- name: Clone Generated Repository
1922
uses: actions/checkout@v3
2023
with:

scripts/build_public_docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ LATEST_BRANCH="2.x"
1111
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
1212
TAG_NAME=$(git tag --points-at HEAD)
1313

14+
echo "branch=${BRANCH_NAME}"
15+
echo "tag=${TAG_NAME}"
16+
1417
if [ "${BRANCH_NAME}" = "${NEXT_BRANCH}" ]; then
1518
echo "Building next docs (${NEXT_BRANCH})"
1619
env DOCS_VERSION=next sphinx-build -a docs/ docs/public/en/next/

0 commit comments

Comments
 (0)