From f9153122fe3e29a75c95b27e152f543e5f6e2ba3 Mon Sep 17 00:00:00 2001 From: Arun Date: Fri, 12 Jan 2024 22:38:57 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command --- .github/workflows/ci-cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ffe0963b..efc48e2c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 @@ -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