Skip to content

Commit

Permalink
Add sudo to move coverage folder created by root user.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhui-xie committed Dec 22, 2023
1 parent 776ea21 commit 23aa67c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/regression_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23aa67c

Please sign in to comment.