1
0
mirror of https://github.com/azure-rtos/threadx synced 2025-01-30 08:02:57 +08:00

Merge pull request #336 from wenhui-xie/add_sudo

Add sudo to move coverage folder created by root user.
This commit is contained in:
Bo Chen 2023-12-22 10:28:34 +08:00 committed by GitHub
commit dbfad5d126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,11 +131,12 @@ jobs:
header: Code Coverage ${{ inputs.result_affix }}
path: code-coverage-results.md
# Add sudo to move coverage folder created by root user
- name: Prepare Coverage GitHub Pages
if: (!inputs.skip_coverage)
run: >-
if [ "${{ inputs.result_affix }}" != "" ] && ${{ inputs.skip_deploy }}; then
mv ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }} \
sudo mv ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }} \
${{ inputs.cmake_path }}/coverage_report/${{ inputs.result_affix }}
fi