Skip to content

Commit e94a113

Browse files
author
liukj
committed
chore: update ci action
1 parent 2f96efe commit e94a113

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-docs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
- name: Build Documentation
7272
run: |
7373
sed -i "s/VERSION/$CURRENT_REF/" docs/data/quick_start.yaml
74+
grep "version:" docs/data/quick_start.yaml
7475
(cd docs && OUTPUT=$(pwd)/../docs-output make docs-build docs-place-redirect)
7576
7677
- name: Commit and Push Changes to Docs Repo
@@ -94,13 +95,15 @@ jobs:
9495
echo "Switching to main branch and rebuilding docs for 'latest'"
9596
9697
# Checkout the main branch of the product repo to rebuild docs for "latest"
98+
git checkout docs/data/quick_start.yaml
9799
git checkout main
98100
99101
# Ensure the latest changes are pulled
100102
git pull origin main
101103
102104
# Build Docs for Main Branch (latest)
103105
sed -i "s/VERSION/$CURRENT_REF/" docs/data/quick_start.yaml
106+
grep "version:" docs/data/quick_start.yaml
104107
(cd docs && OUTPUT=$(pwd)/../docs-output VERSION="main" BRANCH="main" make docs-build docs-place-redirect)
105108
106109
# Commit and Push Latest Docs to Main

0 commit comments

Comments
 (0)