Skip to content

Commit

Permalink
chore: test ci env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
liukj committed Jan 24, 2025
1 parent e94a113 commit 9173e7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
PRODUCT_NAME=$(basename $(pwd)) # Get the directory name as the product name
echo "PRODUCT_NAME=$PRODUCT_NAME" >> $GITHUB_ENV
CURRENT_REF=${GITHUB_REF##*/}
echo $CURRENT_REF
IS_SEMVER=false
SEMVER_REGEX="^v([0-9]+)\.([0-9]+)\.([0-9]+)$"
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
VERSIONS=$(git for-each-ref refs/remotes/origin refs/tags --format="%(refname:short)" | \
grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//')
echo "VERSIONS=main,$VERSIONS" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: Install Hugo
run: |
Expand All @@ -70,6 +72,7 @@ jobs:

- name: Build Documentation
run: |
echo $CURRENT_REF
sed -i "s/VERSION/$CURRENT_REF/" docs/data/quick_start.yaml
grep "version:" docs/data/quick_start.yaml
(cd docs && OUTPUT=$(pwd)/../docs-output make docs-build docs-place-redirect)
Expand Down

0 comments on commit 9173e7b

Please sign in to comment.