File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 dotnet-version : 9.x
3030
3131 - name : Run the Cake script
32- uses : cake-build/cake-action@v1
32+ uses : cake-build/cake-action@v3
3333 with :
3434 verbosity : Diagnostic
3535
Original file line number Diff line number Diff line change 4040 dotnet-version : 9.x
4141
4242 - name : Run the Cake script
43- uses : cake-build/cake-action@v1
43+ uses : cake-build/cake-action@v3
4444 with :
45+ arguments : |
46+ skip-ci-version: true
4547 verbosity : Diagnostic
4648
4749 - uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 11var target = Argument ( "target" , "Build" ) ;
2+ var skipCiVersion = Argument ( "skip-ci-version" , false ) ;
23
34var workflow = BuildSystem . GitHubActions . Environment . Workflow ;
45var buildId = workflow . RunNumber ;
@@ -13,11 +14,11 @@ Task("Build")
1314 MSBuildSettings = new DotNetMSBuildSettings ( ) ,
1415 } ;
1516
16- if ( tag != null )
17+ if ( tag != null )
1718 {
1819 settings . MSBuildSettings . Version = tag ;
1920 }
20- else if ( buildId != 0 )
21+ else if ( buildId != 0 && ! skipCiVersion )
2122 {
2223 settings . MSBuildSettings . VersionSuffix = "ci." + buildId ;
2324 }
You can’t perform that action at this time.
0 commit comments