From 32dfc414ab51b50b3b61101f1d6c7ba05304acf6 Mon Sep 17 00:00:00 2001 From: Ross Buggins Date: Wed, 3 Jul 2024 10:18:03 +0100 Subject: [PATCH] add docs version. --- .github/workflows/cicd-3-deploy.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd-3-deploy.yaml b/.github/workflows/cicd-3-deploy.yaml index 66cf291..8164716 100644 --- a/.github/workflows/cicd-3-deploy.yaml +++ b/.github/workflows/cicd-3-deploy.yaml @@ -10,7 +10,12 @@ on: options: - "true" - "false" + version: + type: string + default: latest + description: "Install specific version" +run-name: "Include prerelease: ${{ inputs.include_prereleases }} Version: ${{ inputs.version }} by @${{ github.actor }}" permissions: contents: read pages: write @@ -84,7 +89,12 @@ jobs: release_version=$(echo $json | (jq -r '.[0].tagName')) if [[ $release_version == null ]]; then exit 1; else echo $release_version; fi - echo release_version=$(echo $release_version) >> $GITHUB_OUTPUT + + if [[ ${{inputs.version}} == latest ]]; then + echo release_version=$(echo $release_version) >> $GITHUB_OUTPUT + else + echo release_version=$(echo ${{inputs.version}}) >> $GITHUB_OUTPUT + fi - name: "Get release version" id: download-asset