Skip to content

Commit 81db1fb

Browse files
committed
remove set-env from actions
it's gone for security reasons
1 parent 7389e56 commit 81db1fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Build and Test
88
runs-on: ubuntu-latest
99
outputs:
10-
ksp-version: ${{ env.KSP_VERSION }}
10+
ksp-version: ${{ steps.set-ksp-version.outputs.ksp-version }}
1111
release-package-name: ${{ steps.set-release-package-name.outputs.release-package-name }}
1212
release-changelog: ${{ steps.extract-single-changelog.outputs.changelog-single }}
1313
steps:
@@ -32,15 +32,16 @@ jobs:
3232
- name: Install NuGet packages
3333
run: nuget restore
3434
- name: Set KSP Version
35+
id: set-ksp-version
3536
run: |
3637
KSP_VERSION="$(cat ./KSP_VERSION)"
3738
echo "KSP Version: ${KSP_VERSION}"
38-
echo "::set-env name=KSP_VERSION::${KSP_VERSION}"
39+
echo "::set-output name=ksp-version::${KSP_VERSION}"
3940
- name: Download KSP DLLs
4041
id: download-ksp-dlls
4142
run: |
42-
aws --no-sign-request s3 cp s3://blowfish-ksp-dlls/ksp-${{ env.KSP_VERSION }}.zip '/tmp/KSP_DLLs.zip'
43-
KSP_DLL_PATH="/opt/ksp/assembly/${KSP_VERSION}"
43+
aws --no-sign-request s3 cp s3://blowfish-ksp-dlls/ksp-${{ steps.set-ksp-version.outputs.ksp-version }}.zip '/tmp/KSP_DLLs.zip'
44+
KSP_DLL_PATH="/opt/ksp/assembly/${{ steps.set-ksp-version.outputs.ksp-version }}"
4445
echo "::set-output name=ksp-dll-path::${KSP_DLL_PATH}"
4546
mkdir -p "${KSP_DLL_PATH}"
4647
unzip '/tmp/KSP_DLLs.zip' -d "${KSP_DLL_PATH}"

0 commit comments

Comments
 (0)