4646 -
4747 name : Cache cake frosting
4848 id : cache-cake
49- uses : actions/cache@v2.1.7
49+ uses : actions/cache@v3.0.2
5050 with :
5151 path : run
5252 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -78,14 +78,14 @@ jobs:
7878 -
7979 name : Use cached cake frosting
8080 id : cache-cake
81- uses : actions/cache@v2.1.7
81+ uses : actions/cache@v3.0.2
8282 with :
8383 path : run
8484 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
8585 -
8686 name : Use cached tools
8787 id : cache-tools
88- uses : actions/cache@v2.1.7
88+ uses : actions/cache@v3.0.2
8989 with :
9090 path : tools
9191 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -141,14 +141,14 @@ jobs:
141141 -
142142 name : Use cached cake frosting
143143 id : cache-cake
144- uses : actions/cache@v2.1.7
144+ uses : actions/cache@v3.0.2
145145 with :
146146 path : run
147147 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
148148 -
149149 name : Use cached tools
150150 id : cache-tools
151- uses : actions/cache@v2.1.7
151+ uses : actions/cache@v3.0.2
152152 with :
153153 path : tools
154154 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -180,14 +180,14 @@ jobs:
180180 -
181181 name : Use cached cake frosting
182182 id : cache-cake
183- uses : actions/cache@v2.1.7
183+ uses : actions/cache@v3.0.2
184184 with :
185185 path : run
186186 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
187187 -
188188 name : Use cached tools
189189 id : cache-tools
190- uses : actions/cache@v2.1.7
190+ uses : actions/cache@v3.0.2
191191 with :
192192 path : tools
193193 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -226,14 +226,14 @@ jobs:
226226 -
227227 name : Use cached cake frosting
228228 id : cache-cake
229- uses : actions/cache@v2.1.7
229+ uses : actions/cache@v3.0.2
230230 with :
231231 path : run
232232 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
233233 -
234234 name : Use cached tools
235235 id : cache-tools
236- uses : actions/cache@v2.1.7
236+ uses : actions/cache@v3.0.2
237237 with :
238238 path : tools
239239 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -290,14 +290,14 @@ jobs:
290290 -
291291 name : Use cached cake frosting
292292 id : cache-cake
293- uses : actions/cache@v2.1.7
293+ uses : actions/cache@v3.0.2
294294 with :
295295 path : run
296296 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
297297 -
298298 name : Use cached tools
299299 id : cache-tools
300- uses : actions/cache@v2.1.7
300+ uses : actions/cache@v3.0.2
301301 with :
302302 path : tools
303303 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -322,48 +322,48 @@ jobs:
322322 dotnet-version : ' 6.0.x'
323323 -
324324 name : Login to DockerHub
325- if : success() && github.event_name != 'pull_request'
325+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
326326 uses : docker/login-action@v1
327327 with :
328328 username : ${{ secrets.DOCKER_USERNAME }}
329329 password : ${{ secrets.DOCKER_PASSWORD }}
330330 -
331331 name : ' [Docker Build/Test/Publish (amd64)] DockerHub'
332- if : success() && github.event_name != 'pull_request'
332+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
333333 shell : pwsh
334334 run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
335335 -
336336 name : ' [Docker Build/Test/Publish (arm64)] DockerHub'
337- if : success() && github.event_name != 'pull_request'
337+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
338338 shell : pwsh
339339 run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
340340 -
341341 name : ' [Docker Publish Manifest] DockerHub'
342- if : success() && github.event_name != 'pull_request'
342+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
343343 shell : pwsh
344344 run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
345345
346346 -
347347 name : Login to GitHub Container Registry
348- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
348+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
349349 uses : docker/login-action@v1
350350 with :
351351 registry : ghcr.io
352352 username : ${{ github.repository_owner }}
353353 password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
354354 -
355355 name : ' [Docker Build/Test/Publish (amd64)] GitHub Container Registry'
356- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
356+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
357357 shell : pwsh
358358 run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
359359 -
360360 name : ' [Docker Build/Test/Publish (arm64)] GitHub Container Registry'
361- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
361+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
362362 shell : pwsh
363363 run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
364364 -
365365 name : ' [Docker Publish Manifest] GitHub Container Registry'
366- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
366+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
367367 shell : pwsh
368368 run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
369369
@@ -388,14 +388,14 @@ jobs:
388388 -
389389 name : Use cached cake frosting
390390 id : cache-cake
391- uses : actions/cache@v2.1.7
391+ uses : actions/cache@v3.0.2
392392 with :
393393 path : run
394394 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
395395 -
396396 name : Use cached tools
397397 id : cache-tools
398- uses : actions/cache@v2.1.7
398+ uses : actions/cache@v3.0.2
399399 with :
400400 path : tools
401401 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
@@ -430,14 +430,14 @@ jobs:
430430 -
431431 name : Use cached cake frosting
432432 id : cache-cake
433- uses : actions/cache@v2.1.7
433+ uses : actions/cache@v3.0.2
434434 with :
435435 path : run
436436 key : run-${{ runner.os }}-${{ hashFiles('./build/**') }}
437437 -
438438 name : Use cached tools
439439 id : cache-tools
440- uses : actions/cache@v2.1.7
440+ uses : actions/cache@v3.0.2
441441 with :
442442 path : tools
443443 key : tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
0 commit comments