From 8e30a08291cef3618eaa1de0797f8dfd4473fa0c Mon Sep 17 00:00:00 2001 From: Zorg Date: Thu, 1 May 2025 09:42:57 -0400 Subject: [PATCH] Avoid using set-output in GitHub Actions (#2399) --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc406b58..160840aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,16 +70,20 @@ jobs: DEVELOPER_DIR: ${{ matrix.xcode-path }} run: | if grep -q "warning:" analyze_output.txt; then - echo '::set-output name=analyzestatus::0' + echo "analyzestatus=0" >> $GITHUB_OUTPUT else - echo '::set-output name=analyzestatus::1' + echo "analyzestatus=1" >> $GITHUB_OUTPUT fi - name: Extract Analyzed Warnings if: ${{ success() && matrix.run-analyzer && github.event_name == 'pull_request' && steps.findwarnings.outputs.analyzestatus == '0' }} id: warnings run: | - echo ::set-output name=content::$(cat analyze_output.txt) + { + echo 'content<> $GITHUB_OUTPUT - name: Post Analyzed Warnings if: ${{ success() && matrix.run-analyzer && github.event_name == 'pull_request' && steps.findwarnings.outputs.analyzestatus == '0' }}