File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2525 # Get default branch
2626 $repo = 'microsoft/OpenAPI.NET.OData'
2727 $defaultBranch = Invoke-RestMethod -Method GET -Uri https://api.github.com/repos/$repo | Select-Object -ExpandProperty default_branch
28- Write-Output "::set-output name= default_branch:: $(echo $defaultBranch)"
28+ Write-Output "default_branch= $(echo $defaultBranch) >> $GITHUB_OUTPUT "
2929
3030 - name : Conditionals handler
3131 id : conditionals_handler
3737 if ( $githubRef -like "*$defaultBranch*" ) {
3838 $isDefaultBranch = 'true'
3939 }
40- Write-Output "::set-output name= is_default_branch:: $(echo $isDefaultBranch)"
40+ Write-Output "is_default_branch= $(echo $isDefaultBranch) >> $GITHUB_OUTPUT "
4141
4242 - name : Checkout repository
4343 id : checkout_repo
You can’t perform that action at this time.
0 commit comments