@@ -100,12 +100,6 @@ jobs:
100100
101101 - uses : actions/checkout@v4
102102
103- - name : Install dotnet tool
104- run : dotnet tool install -g dotnetCampus.TagToVersion
105-
106- - name : Set tag to version
107- run : dotnet TagToVersion -t ${{ github.ref }}
108-
109103 - name : Setup .NET
110104 uses : actions/setup-dotnet@v1
111105 with :
@@ -115,6 +109,15 @@ jobs:
115109 6.0.x
116110 9.0.x
117111
112+ - name : Add .NET global tools to PATH
113+ run : echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
114+
115+ - name : Install dotnet tool
116+ run : dotnet tool install -g dotnetCampus.TagToVersion
117+
118+ - name : Set tag to version
119+ run : dotnet-TagToVersion -t ${{ github.ref }}
120+
118121 - name : Build with dotnet
119122 run : dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
120123
@@ -158,12 +161,6 @@ jobs:
158161 apt-get install zlib1g-dev:arm64 -y
159162
160163 - uses : actions/checkout@v4
161-
162- - name : Install dotnet tool
163- run : dotnet tool install -g dotnetCampus.TagToVersion
164-
165- - name : Set tag to version
166- run : dotnet TagToVersion -t ${{ github.ref }}
167164
168165 - name : Setup .NET
169166 uses : actions/setup-dotnet@v1
@@ -174,6 +171,15 @@ jobs:
174171 6.0.x
175172 9.0.x
176173
174+ - name : Add .NET global tools to PATH
175+ run : echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
176+
177+ - name : Install dotnet tool
178+ run : dotnet tool install -g dotnetCampus.TagToVersion
179+
180+ - name : Set tag to version
181+ run : dotnet-TagToVersion -t ${{ github.ref }}
182+
177183 - name : Build with dotnet
178184 run : dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
179185
0 commit comments