Skip to content

Commit 1e30f9a

Browse files
committed
Update DLL name
MTGA client version 2024.37.0 changed the name from Wizards.MDN.GreProtobuf.Unity.dll to Wizards.MDN.GreProtobuf.dll Extract variable
1 parent 1db1b92 commit 1e30f9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/commit.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
description: 'Version'
1010
required: false
1111

12+
env:
13+
DLL_NAME: 'Wizards.MDN.GreProtobuf.dll'
14+
1215
jobs:
1316
buildjob:
1417
name: Get latest MTGA version
@@ -47,7 +50,7 @@ jobs:
4750
- name: Run MsiExtractor
4851
run: |
4952
cd "$Env:GITHUB_WORKSPACE\MsiExtractor\MsiExtractor\bin\Debug"
50-
.\MsiExtractor.exe ${{ steps.download_msi.outputs.msiFilePath }} "Wizards.MDN.GreProtobuf.Unity.dll"
53+
.\MsiExtractor.exe ${{ steps.download_msi.outputs.msiFilePath }} "${{env.DLL_NAME}}"
5154
$outputDirectory = Split-Path -Parent ${{ steps.download_msi.outputs.msiFilePath }}
5255
dir "$outputDirectory"
5356
- name: Checkout proto extractor
@@ -66,7 +69,7 @@ jobs:
6669
- name: Run proto extractor
6770
id: extract-proto
6871
run: |
69-
dotnet run --proto3 --resolve-circular-dependancies --automatic-packaging --resolve-name-collisions --outPath "${{github.workspace}}" --libPath "${{github.workspace}}" "${{github.workspace}}\Wizards.MDN.GreProtobuf.Unity.dll"
72+
dotnet run --proto3 --resolve-circular-dependancies --automatic-packaging --resolve-name-collisions --outPath "${{github.workspace}}" --libPath "${{github.workspace}}" "${{github.workspace}}\${{env.DLL_NAME}}"
7073
dir "${{github.workspace}}"
7174
$protoFile = Get-Childitem -Path "${{github.workspace}}" -Filter *.proto | Select -First 1
7275
echo "protoPath=$($protoFile.FullName)" >> $Env:GITHUB_OUTPUT

0 commit comments

Comments
 (0)