Skip to content

Commit

Permalink
[CI] Choose stable/latest tag correctly by fixing the missing $ in ba…
Browse files Browse the repository at this point in the history
…sh script (#2293)


Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Dec 5, 2022
1 parent dd306f2 commit f9ca84c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
# generate a stable version
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
if [ ! -z "tag" ];
if [ ! -z "$tag" ];
then
export TAG_VER=stable
make graphscope-docs
Expand All @@ -140,12 +140,16 @@ jobs:
if: steps.changes.outputs.src == 'true'
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: false

- name: Upload Docs
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
shell: bash
run: |
shopt -s extglob
rm google-java-format-1.13.0-all-deps.jar || true
rm google-java-format-1.13.0-all-deps.jar* || true
git config user.email github-actions@github.com
git config user.name github-actions
Expand Down Expand Up @@ -182,3 +186,4 @@ jobs:
git add -A
git commit --amend --no-edit -m "Generate latest docs on CI, from commit ${{ github.sha }}." --author "github-actions <github-actions@github.com>" -s --date="$(date -R)"
git push -f origin gh-pages

0 comments on commit f9ca84c

Please sign in to comment.