From 51bcf8eae9552f4985363fc0e843ca53fa87bcd3 Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Thu, 23 Nov 2023 07:38:37 +0000 Subject: [PATCH] Add affix to artifacts --- .github/workflows/regression_template.yml | 7 +++++-- .github/workflows/regression_test.yml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/regression_template.yml b/.github/workflows/regression_template.yml index 6f73f56a..664c077c 100644 --- a/.github/workflows/regression_template.yml +++ b/.github/workflows/regression_template.yml @@ -71,7 +71,7 @@ jobs: if: success() || failure() uses: actions/upload-artifact@v3.1.3 with: - name: test_reports + name: test_reports${{ inputs.deploy_url_affix }} path: | ${{ inputs.cmake_path }}/build/*.txt ${{ inputs.cmake_path }}/build/*/Testing/**/*.xml @@ -122,6 +122,7 @@ jobs: uses: actions/upload-pages-artifact@v2.0.0 with: path: ${{ inputs.cmake_path }}/coverage_report + name: coverage_report${{ inputs.deploy_url_affix }} deploy_code_coverage: runs-on: ubuntu-latest @@ -129,7 +130,7 @@ jobs: needs: run_tests environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url }}/default_build_coverage${{ inputs.deploy_url_affix }} permissions: pages: write id-token: write @@ -138,6 +139,8 @@ jobs: - name: Deploy GitHub Pages site id: deployment uses: actions/deploy-pages@v1.2.9 + with: + artifact_name: coverage_report${{ inputs.deploy_url_affix }} - name: Write Code Coverage Report URL run: | diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index e1edd466..9c4bb1aa 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -17,7 +17,7 @@ jobs: build_script: ./scripts/build_tx.sh test_script: ./scripts/test_tx.sh cmake_path: ./test/tx/cmake - deploy_url_affix: _tx/ + deploy_url_affix: _tx result_affix: ThreadX tx_smp: uses: ./.github/workflows/regression_template.yml @@ -25,5 +25,5 @@ jobs: build_script: ./scripts/build_smp.sh test_script: ./scripts/test_smp.sh cmake_path: ./test/smp/cmake - deploy_url_affix: _smp/ + deploy_url_affix: _smp result_affix: SMP \ No newline at end of file