From a90674997f364e3371d08255f8cdec12294d1841 Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Fri, 12 Jan 2024 14:42:08 -0500 Subject: [PATCH] ignore error when uploading test dashboard from build for external forks (#2487) --- .github/workflows/CD.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 4ef336bd3a..86cef9af58 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -118,6 +118,7 @@ jobs: - name: Upload dashboard ${{steps.publish_url_for_js.outputs.url}} uses: Azure/cli@v1.0.0 + id: uploaddashboard with: azcliversion: 2.16.0 inlineScript: | @@ -130,16 +131,18 @@ jobs: else echo "Invalid event $${{ github.event_name }}" fi + continue-on-error: true - - uses: unsplash/comment-on-pr@master - if: ${{ github.event_name == 'pull_request' }} + - if: ${{ (github.event_name == 'pull_request') && (steps.uploaddashboard.outcome != 'failure') }} + uses: unsplash/comment-on-pr@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: msg: ${{steps.publish_url_for_js.outputs.url}} check_for_duplicate_msg: true - - name: Upload responsible-ai + - if: ${{ (steps.uploaddashboard.outcome != 'failure') }} + name: Upload responsible-ai uses: Azure/cli@v1.0.0 with: azcliversion: 2.16.0 @@ -154,7 +157,8 @@ jobs: echo "Invalid event $${{ github.event_name }}" fi - - name: Upload raiwidgets + - if: ${{ (steps.uploaddashboard.outcome != 'failure') }} + name: Upload raiwidgets uses: Azure/cli@v1.0.0 with: azcliversion: 2.16.0 @@ -173,7 +177,8 @@ jobs: id: retention_date run: echo "::set-output name=date::$(date --date='${{env.retentionDays}} days ago' +'%Y-%m-%dT00:00Z')" - - name: Delete old files before ${{steps.retention_date.outputs.date}} + - if: ${{ (steps.uploaddashboard.outcome != 'failure') }} + name: Delete old files before ${{steps.retention_date.outputs.date}} uses: Azure/cli@v1.0.0 with: azcliversion: 2.16.0