Skip to content

Commit

Permalink
ignore error when uploading test dashboard from build for external fo…
Browse files Browse the repository at this point in the history
…rks (#2487)
  • Loading branch information
imatiach-msft authored Jan 12, 2024
1 parent 010289f commit a906749
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:

- name: Upload dashboard ${{steps.publish_url_for_js.outputs.url}}
uses: Azure/[email protected]
id: uploaddashboard
with:
azcliversion: 2.16.0
inlineScript: |
Expand All @@ -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/[email protected]
with:
azcliversion: 2.16.0
Expand All @@ -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/[email protected]
with:
azcliversion: 2.16.0
Expand All @@ -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/[email protected]
with:
azcliversion: 2.16.0
Expand Down

0 comments on commit a906749

Please sign in to comment.