Skip to content

Commit

Permalink
Merge pull request #473 from arunsathiya/master
Browse files Browse the repository at this point in the history
ci: Use GITHUB_OUTPUT envvar instead of set-output command
  • Loading branch information
andrueastman authored Jan 15, 2024
2 parents 73626ed + f915312 commit 06b7b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# Get default branch
$repo = 'microsoft/OpenAPI.NET.OData'
$defaultBranch = Invoke-RestMethod -Method GET -Uri https://api.github.com/repos/$repo | Select-Object -ExpandProperty default_branch
Write-Output "::set-output name=default_branch::$(echo $defaultBranch)"
Write-Output "default_branch=$(echo $defaultBranch) >> $GITHUB_OUTPUT"
- name: Conditionals handler
id: conditionals_handler
Expand All @@ -37,7 +37,7 @@ jobs:
if ( $githubRef -like "*$defaultBranch*" ) {
$isDefaultBranch = 'true'
}
Write-Output "::set-output name=is_default_branch::$(echo $isDefaultBranch)"
Write-Output "is_default_branch=$(echo $isDefaultBranch) >> $GITHUB_OUTPUT"
- name: Checkout repository
id: checkout_repo
Expand Down

0 comments on commit 06b7b5d

Please sign in to comment.