Skip to content

Commit 5787ff6

Browse files
variable passing between steps.
1 parent 6d94803 commit 5787ff6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,18 @@ jobs:
218218
TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
219219
TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
220220
echo $TEST_NUGET_VERSION
221+
echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
222+
name: Set the nuget version
223+
id: set-nuget-version
224+
221225
- run: |
222226
dotnet nuget push \
223227
nhsnotifysupplier.${TEST_NUGET_VERSION}.nupkg \
224228
--source github \
225-
--api-key ${{ secrets.GITHUB_TOKEN }}
229+
--api-key $GITHUB_TOKEN
230+
env:
231+
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
232+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226233
227234
### Publish NPM
228235

0 commit comments

Comments
 (0)