Skip to content

Commit 41d922e

Browse files
Set VERSION on the sdk make build from the workflow so .version file is NOT regenerated.
1 parent 5787ff6 commit 41d922e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/actions/build-sdk/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ runs:
4646
- name: Build sdks
4747
working-directory: ./sdk
4848
shell: bash
49-
run: make build
49+
run: |
50+
make build VERSION="${{ inputs.version }}"
51+
5052
5153
- name: Upload API OAS specification artifact
5254
uses: actions/upload-artifact@v4

.github/workflows/stage-5-publish.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ jobs:
204204
--store-password-in-clear-text \
205205
--name github \
206206
"https://nuget.pkg.github.com/NHSDigital/index.json"
207+
- run: |
208+
echo "ROOT .version file is: $(cat .version)"
209+
echo "GH variable version is: ${{ inputs.version }}"
210+
name: Showing the base versions
211+
207212
- run: |
208213
VERSION=${{ inputs.version }}
209214
SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"

sdk/generate-cs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ generate_nuget_version(){
3737
}
3838

3939
pack(){
40+
41+
4042
generate_nuget_version
4143

4244
dotnet \

0 commit comments

Comments
 (0)