Skip to content

Commit 9173e7b

Browse files
author
liukj
committed
chore: test ci env variable
1 parent e94a113 commit 9173e7b

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
@@ -24,6 +24,7 @@ jobs:
2424
PRODUCT_NAME=$(basename $(pwd)) # Get the directory name as the product name
2525
echo "PRODUCT_NAME=$PRODUCT_NAME" >> $GITHUB_ENV
2626
CURRENT_REF=${GITHUB_REF##*/}
27+
echo $CURRENT_REF
2728
IS_SEMVER=false
2829
SEMVER_REGEX="^v([0-9]+)\.([0-9]+)\.([0-9]+)$"
2930
@@ -54,6 +55,7 @@ jobs:
5455
VERSIONS=$(git for-each-ref refs/remotes/origin refs/tags --format="%(refname:short)" | \
5556
grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//')
5657
echo "VERSIONS=main,$VERSIONS" >> $GITHUB_ENV
58+
echo $GITHUB_ENV
5759
5860
- name: Install Hugo
5961
run: |
@@ -70,6 +72,7 @@ jobs:
7072

7173
- name: Build Documentation
7274
run: |
75+
echo $CURRENT_REF
7376
sed -i "s/VERSION/$CURRENT_REF/" docs/data/quick_start.yaml
7477
grep "version:" docs/data/quick_start.yaml
7578
(cd docs && OUTPUT=$(pwd)/../docs-output make docs-build docs-place-redirect)

0 commit comments

Comments
 (0)