5151 change_set_version :
5252 description : " The change set version for deployments"
5353 value : ${{ jobs.tag_release.outputs.change_set_version }}
54+ next_version_tag :
55+ description : " The next version tag that will be created"
56+ value : ${{ jobs.tag_release.outputs.next_version_tag }}
5457 secrets :
5558 NPM_TOKEN :
5659 required : false
6467 runs-on : ubuntu-22.04
6568 steps :
6669 - name : Checkout semantic-release workflow
67- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
70+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
6871 with :
6972 repository : NHSDigital/eps-common-workflows
7073 sparse-checkout-cone-mode : false
@@ -104,7 +107,7 @@ jobs:
104107
105108 - name : Cache asdf artifact
106109 id : asdf_artifact_cache
107- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
110+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
108111 with :
109112 path : asdf.tar.gz
110113 key : ${{ steps.artifact_cache_key.outputs.key }}
@@ -113,7 +116,7 @@ jobs:
113116 - name : Cache asdf with installed npm packages
114117 if : ${{ steps.asdf_artifact_cache.outputs.cache-hit != 'true' }}
115118 id : installed_cache
116- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
119+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
117120 with :
118121 path : ~/.asdf
119122 key : ${{ steps.installed_cache_key.outputs.key }}
@@ -122,7 +125,7 @@ jobs:
122125 - name : Cache asdf
123126 if : ${{ steps.installed_cache.outcome == 'success' && steps.installed_cache.outputs.cache-hit != 'true' }}
124127 id : asdf_cache
125- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
128+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
126129 with :
127130 path : ~/.asdf
128131 key : ${{ steps.asdf_cache_key.outputs.key }}
@@ -150,10 +153,11 @@ jobs:
150153 tar -czf asdf.tar.gz -C "$HOME" .asdf
151154
152155 - name : Upload asdf artifact
153- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
156+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
154157 with :
155158 name : asdf_artifact
156159 path : asdf.tar.gz
160+ overwrite : true
157161
158162 - name : Prepare config artifact
159163 run : |
@@ -162,20 +166,22 @@ jobs:
162166 cp releaseNotesTemplates/commit.hbs config_artifact/releaseNotesTemplates/
163167
164168 - name : Upload config artifact
165- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
169+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
166170 with :
167171 name : config_artifact
168172 path : config_artifact/
173+ overwrite : true
169174
170175 tag_release :
171176 needs : install_semantic_release
172177 runs-on : ubuntu-22.04
173178 outputs :
174179 version_tag : ${{steps.output_version_tag.outputs.VERSION_TAG}}
175180 change_set_version : ${{ steps.output_change_set_version.outputs.CHANGE_SET_VERSION }}
181+ next_version_tag : ${{ steps.output_version_tag.outputs.NEXT_VERSION_TAG }}
176182 steps :
177183 - name : Fetch asdf artifact
178- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
184+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
179185 with :
180186 name : asdf_artifact
181187 - name : Install asdf
@@ -204,7 +210,7 @@ jobs:
204210 # echo "NODE_PATH=$NODE_PATH" >> $GITHUB_ENV
205211
206212 - name : Clone calling repo
207- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
213+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
208214 with :
209215 repository : ${{ github.repository }}
210216 ref : ${{ github.sha }}
@@ -219,13 +225,13 @@ jobs:
219225 BRANCH_NAME : ${{ inputs.branch_name }}
220226
221227 - name : Fetch semantic-release config
222- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
228+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
223229 with :
224230 name : config_artifact
225231
226232 - name : Cache asdf
227233 if : ${{ inputs.publish_package }}
228- uses : actions/cache@v4
234+ uses : actions/cache@v5
229235 with :
230236 path : |
231237 ~/.asdf
@@ -249,13 +255,13 @@ jobs:
249255
250256 - name : Download extra artifact
251257 if : ${{ inputs.extra_artifact_name != '' }}
252- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
258+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
253259 with :
254- artifact-ids : ${{ inputs.extra_artifact_id }}
255- github-token : ${{ secrets.GITHUB_TOKEN }}
256- repository : ${{ inputs.extra_artifact_repository }}
257- run-id : ${{ inputs.extra_artifact_run_id }}
258-
260+ artifact-ids : ${{ inputs.extra_artifact_id }}
261+ github-token : ${{ secrets.GITHUB_TOKEN }}
262+ repository : ${{ inputs.extra_artifact_repository }}
263+ run-id : ${{ inputs.extra_artifact_run_id }}
264+
259265 - name : Set VERSION_TAG based on dry_run flag
260266 id : output_version_tag
261267 run : |
@@ -304,6 +310,7 @@ jobs:
304310 fi
305311 echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_OUTPUT"
306312 echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_ENV"
313+ echo "NEXT_VERSION_TAG=${NEW_VERSION_TAG}" >> "$GITHUB_OUTPUT"
307314 env :
308315 GITHUB_TOKEN : ${{ github.token }}
309316 BRANCH_NAME : ${{ inputs.branch_name }}
@@ -345,7 +352,7 @@ jobs:
345352 body : |
346353 ## Info
347354 [See code diff](${{ github.event.compare }})
348- [Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
355+ [Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - Workflow ID: ${{ github.run_id }}
349356
350357 It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
351358
0 commit comments