Skip to content

Commit

Permalink
add docs version.
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed Jul 3, 2024
1 parent f80e8bf commit 32dfc41
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cicd-3-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 32dfc41

Please sign in to comment.