Skip to content

Commit dd7c3a2

Browse files
committed
WIP
1 parent 5596ae0 commit dd7c3a2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/release_created.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,22 @@ jobs:
4747
PROXYGEN_API_NAME: nhs-notify-supplier
4848
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
4949
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
50+
5051
steps:
5152
- name: "Checkout code"
5253
uses: actions/checkout@v5
54+
55+
- name: "Get version from .version file"
56+
id: get_version
57+
run: |
58+
version=$(head -n 1 .version 2> /dev/null || echo unknown)
59+
echo "version=$version" >> $GITHUB_OUTPUT
60+
5361
- name: "Build proxies"
5462
uses: ./.github/actions/build-proxies
5563
with:
56-
environment: 'main'
64+
environment: "main"
5765
apimEnv: "int"
5866
runId: "${{ github.run_id }}"
59-
releaseVersion: ${{ github.event.release.tag_name }}
67+
releaseVersion: "${{ github.event.release.tag_name }}"
68+
version: "${{ steps.get_version.outputs.version }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
env:
152152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153153
with:
154-
upload_url: "${{ steps.publi.outputs.upload_url }}"
154+
upload_url: "${{ steps.create_release.outputs.upload_url }}"
155155
asset_path: ./artifacts/sdk-html-${{ inputs.version }}.zip
156156
asset_name: sdk-html-${{ inputs.version }}.zip
157157
asset_content_type: "application/gzip"

0 commit comments

Comments
 (0)