Skip to content

Commit

Permalink
Merge pull request #26 from NHSDigital/rossbugginsnhs/2024-07-03-depl…
Browse files Browse the repository at this point in the history
…oy-docs-specific-version

add docs version.
  • Loading branch information
RossBugginsNHS authored Jul 3, 2024
2 parents 696e6d4 + 32dfc41 commit f9b25cf
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 f9b25cf

Please sign in to comment.