File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 88on :
99 # Triggers the workflow on push or pull request events but only for the main branch
1010 push :
11- branches : [ main, 'rel/weekly' ]
11+ branches : [ main ]
1212 pull_request :
13- branches : [ main, 'rel/weekly' ]
13+ branches : [ main ]
1414
1515 # Allows you to run this workflow manually from the Actions tab
1616 workflow_dispatch :
2727 description : ' The end commit of the range to check for incremental builds.'
2828 type : string
2929 required : false
30+ is_scheduled :
31+ description : ' A boolean value that indicates whether this is a scheduled run.'
32+ type : boolean
33+ required : false
3034
3135env :
3236 DOTNET_VERSION : ${{ '9.0.x' }}
@@ -341,7 +345,7 @@ jobs:
341345
342346 sign :
343347 needs : [package]
344- if : ${{ startsWith(github.ref, 'refs/heads/rel/') }}
348+ if : ${{ startsWith(github.ref, 'refs/heads/rel/') || inputs.is_scheduled }}
345349 runs-on : windows-latest
346350 permissions :
347351 id-token : write # Required for requesting the JWT
@@ -406,7 +410,7 @@ jobs:
406410 ${{ github.workspace }}/packages/**/*.nupkg
407411
408412 release :
409- if : ${{ startsWith(github.ref, 'refs/heads/rel/') }}
413+ if : ${{ startsWith(github.ref, 'refs/heads/rel/') || inputs.is_scheduled }}
410414 needs : [sign]
411415 environment : nuget-release-gate # This gates this job until manually approved
412416 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 6868 with :
6969 commit_range_start : ${{ needs.tag-weekly-release.outputs.commit_range_start }}
7070 commit_range_end : ${{ needs.tag-weekly-release.outputs.commit_range_end }}
71+ is_scheduled : true
7172 secrets : inherit
You can’t perform that action at this time.
0 commit comments