Skip to content

Commit d632acb

Browse files
committed
fix version being empty, consistency
1 parent f5a0b7d commit d632acb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/opus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
submodules: recursive
3232

3333
- name: Checkout latest Tag
34+
id: print-version
3435
shell: bash
3536
run: |
3637
git fetch --tags
@@ -194,8 +195,8 @@ jobs:
194195
shell: bash
195196
env:
196197
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
198+
VERSION: ${{ needs.build.outputs.version }}
197199
run: |
198-
VERSION=${{ needs.build.outputs.version }}
199200
VERSION="${VERSION:1}"
200201
dotnet pack ./build/DSharpPlus.Natives.Opus.csproj -c Release -p:Version="$VERSION.${{ github.run_number }}"
201202
dotnet nuget push "artifacts/**" --skip-duplicate -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json

.github/workflows/sodium.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
submodules: recursive
2929

3030
- name: Checkout latest Tag
31+
id: print-version
3132
shell: bash
3233
run: |
3334
git fetch --tags
@@ -207,8 +208,8 @@ jobs:
207208
shell: bash
208209
env:
209210
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
211+
VERSION: ${{ needs.build.outputs.version }}
210212
run: |
211-
VERSION=${{ needs.build.outputs.version }}
212213
VERSION="${VERSION%%-*}"
213214
dotnet pack ./build/DSharpPlus.Natives.Sodium.csproj -c Release -p:Version="$VERSION.${{ github.run_number }}"
214215
dotnet nuget push "artifacts/**" --skip-duplicate -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json

.github/workflows/zstd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
submodules: recursive
3232

3333
- name: Checkout latest Tag
34+
id: print-version
3435
shell: bash
3536
run: |
3637
git fetch --tags

0 commit comments

Comments
 (0)