From 7c22eb3b34e63ce81f3e4ba5cdf747c0bd2e27b3 Mon Sep 17 00:00:00 2001 From: h2zero <32826625+h2zero@users.noreply.github.com> Date: Mon, 2 Aug 2021 15:40:30 -0600 Subject: [PATCH] Fix version tag in create docs actions (#1050) --- .github/workflows/manual_docs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual_docs.yml b/.github/workflows/manual_docs.yml index 053d9bc..c61c506 100644 --- a/.github/workflows/manual_docs.yml +++ b/.github/workflows/manual_docs.yml @@ -20,8 +20,14 @@ jobs: python -m pip install --upgrade pip pip install requests npm install + - name: get lastest release tag + id: last_release + uses: InsonusK/get-latest-release@v1.0.1 + with: + myToken: ${{ github.token }} + view_top: 1 - name: Set version tag from git - run: sed -i "s/version_tag/${GITHUB_REF#refs/tags/}/g" docs/.vuepress/config.js + run: sed -i "s/version_tag/${{steps.last_release.outputs.tag_name}}/g" docs/.vuepress/config.js - name: Build documentation run: | python ./scripts/gen_wu.py ${GITHUB_REPOSITORY} @@ -31,4 +37,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/.vuepress/dist - cname: docs.openmqttgateway.com + cname: docs.openmqttgateway.com \ No newline at end of file