From 23aa67c948a748f95fa324b7f390827dd09bfe75 Mon Sep 17 00:00:00 2001 From: Wenhui Xie <54433186+wenhui-xie@users.noreply.github.com> Date: Fri, 22 Dec 2023 01:36:38 +0000 Subject: [PATCH] Add sudo to move coverage folder created by root user. --- .github/workflows/regression_template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression_template.yml b/.github/workflows/regression_template.yml index d8501f210..ae62a6504 100644 --- a/.github/workflows/regression_template.yml +++ b/.github/workflows/regression_template.yml @@ -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