-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ignore error when uploading test dashboard from build for external fo…
…rks (#2487)
- Loading branch information
1 parent
010289f
commit a906749
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|