Skip to content

Commit 8e30a08

Browse files
authored
Avoid using set-output in GitHub Actions (#2399)
1 parent fea50c3 commit 8e30a08

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,20 @@ jobs:
7070
DEVELOPER_DIR: ${{ matrix.xcode-path }}
7171
run: |
7272
if grep -q "warning:" analyze_output.txt; then
73-
echo '::set-output name=analyzestatus::0'
73+
echo "analyzestatus=0" >> $GITHUB_OUTPUT
7474
else
75-
echo '::set-output name=analyzestatus::1'
75+
echo "analyzestatus=1" >> $GITHUB_OUTPUT
7676
fi
7777
7878
- name: Extract Analyzed Warnings
7979
if: ${{ success() && matrix.run-analyzer && github.event_name == 'pull_request' && steps.findwarnings.outputs.analyzestatus == '0' }}
8080
id: warnings
8181
run: |
82-
echo ::set-output name=content::$(cat analyze_output.txt)
82+
{
83+
echo 'content<<EOF'
84+
cat analyze_output.txt
85+
echo 'EOF'
86+
} >> $GITHUB_OUTPUT
8387
8488
- name: Post Analyzed Warnings
8589
if: ${{ success() && matrix.run-analyzer && github.event_name == 'pull_request' && steps.findwarnings.outputs.analyzestatus == '0' }}

0 commit comments

Comments
 (0)