Skip to content

Commit f17ce98

Browse files
authored
Merge pull request blowfishpro#204 from blowfishpro/FixActions
Fix actions
2 parents 5309625 + 92876ba commit f17ce98

File tree

2 files changed

+7
-78
lines changed

2 files changed

+7
-78
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ 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:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
1616
with:
1717
fetch-depth: 100
18+
- name: Fetch master
19+
run: git fetch --depth=100 origin master
1820
- name: Fetch tags
1921
run: git fetch --depth=1 --tags origin
2022
- name: Describe current revision with tags
@@ -32,15 +34,16 @@ jobs:
3234
- name: Install NuGet packages
3335
run: nuget restore
3436
- name: Set KSP Version
37+
id: set-ksp-version
3538
run: |
3639
KSP_VERSION="$(cat ./KSP_VERSION)"
3740
echo "KSP Version: ${KSP_VERSION}"
38-
echo "::set-env name=KSP_VERSION::${KSP_VERSION}"
41+
echo "::set-output name=ksp-version::${KSP_VERSION}"
3942
- name: Download KSP DLLs
4043
id: download-ksp-dlls
4144
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}"
45+
aws --no-sign-request s3 cp s3://blowfish-ksp-dlls/ksp-${{ steps.set-ksp-version.outputs.ksp-version }}.zip '/tmp/KSP_DLLs.zip'
46+
KSP_DLL_PATH="/opt/ksp/assembly/${{ steps.set-ksp-version.outputs.ksp-version }}"
4447
echo "::set-output name=ksp-dll-path::${KSP_DLL_PATH}"
4548
mkdir -p "${KSP_DLL_PATH}"
4649
unzip '/tmp/KSP_DLLs.zip' -d "${KSP_DLL_PATH}"

.travis.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)