Skip to content

Commit 06b7b5d

Browse files
authored
Merge pull request #473 from arunsathiya/master
ci: Use GITHUB_OUTPUT envvar instead of set-output command
2 parents 73626ed + f915312 commit 06b7b5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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
@@ -37,7 +37,7 @@ jobs:
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

0 commit comments

Comments
 (0)