fix pkgcheck-checks-on-pr: The set-output command is deprecated

This commit is contained in:
Yachen Wang 2023-04-08 11:00:04 +08:00 committed by 梁永祥
parent 406b16ec1c
commit ce212d9317

View File

@ -59,7 +59,7 @@ jobs:
break
fi
done
echo "::set-output name=sha::${sha}"
echo "{sha}={sha}" >> $GITHUB_OUTPUT
- name: Check
id: check
shell: bash
@ -104,7 +104,7 @@ jobs:
"${@}" >/var/tmp/report.txt || ret=$?
cat /var/tmp/report.txt || true
set --
echo "::set-output name=ret::${ret}"
echo "{ret}={ret}" >> $GITHUB_OUTPUT
[[ ${ret} == 0 ]]
- name: Format report
if: ${{ always() }}
@ -154,7 +154,7 @@ jobs:
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
filename: **pkgcheck-report-${commit_id}**_
EOF
echo "::set-output name=commit::${commit_id}"
echo "{commit}={commit_id}" >> $GITHUB_OUTPUT
fi
cat <<EOF >>/var/tmp/report.md
</details>
@ -162,7 +162,7 @@ jobs:
${r_explain}
EOF
fi
echo "::set-output name=has::true"
echo "{has}={true}" >> $GITHUB_OUTPUT
- name: Hide previous results
if: ${{ always() }}
shell: bash