Skip to content

Commit 1720ce7

Browse files
committed
revisions in response to PR comments
1 parent 4ca51e1 commit 1720ce7

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/upload-dev-build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,22 @@ jobs:
1818
upload:
1919
runs-on: ubuntu-latest
2020
if: |
21-
github.event_name == 'workflow_dispatch' ||
22-
(github.event_name == 'workflow_run' && github.event.workflow_run.event == 'pull_request')
21+
github.event_name == 'workflow_dispatch' ||
22+
(
23+
github.event_name == 'workflow_run' &&
24+
github.event.workflow_run.event == 'pull_request' &&
25+
github.event.workflow_run.conclusion == 'success'
26+
)
2327
steps:
2428
- name: Download build artifact
2529
id: download-artifact
2630
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
27-
continue-on-error: true
2831
with:
2932
name: dist-node22 # uploaded by publish-dist.yml > publish-dist-node-v22
3033
run-id: ${{ github.event.workflow_run.id || inputs.run_id }}
3134
github-token: ${{ secrets.GITHUB_TOKEN }}
3235
path: temp-dist
3336

34-
- name: Check if artifact exists
35-
if: steps.download-artifact.outcome != 'success'
36-
env:
37-
RUN_ID: ${{ github.event.workflow_run.id || inputs.run_id }}
38-
run: |
39-
echo "No build artifact found for $RUN_ID. Skipping upload."
40-
exit 0
41-
4237
- name: Setup metadata and prepare folders
4338
id: setup-metadata
4439
env:
@@ -114,4 +109,4 @@ jobs:
114109
echo "### PR Build Uploaded" >> $GITHUB_STEP_SUMMARY
115110
echo "Builds for PR #${{ steps.setup-metadata.outputs.PR_NUM }} are available:" >> $GITHUB_STEP_SUMMARY
116111
echo "- Latest build for this PR: [$BASE/latest/plotly.min.js]($BASE/latest/plotly.min.js)" >> $GITHUB_STEP_SUMMARY
117-
echo "- Build for this commit (permalink): [$BASE/${{ steps.setup-metadata.outputs.SHA }}/plotly.min.js]($BASE/${{ steps.setup-metadata.outputs.SHA }}/plotly.min.js)" >> $GITHUB_STEP_SUMMARY
112+
echo "- Build for this commit: [$BASE/${{ steps.setup-metadata.outputs.SHA }}/plotly.min.js]($BASE/${{ steps.setup-metadata.outputs.SHA }}/plotly.min.js)" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)