File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ permissions:
1313jobs :
1414 notify :
1515 runs-on : ubuntu-latest
16- if : ${{ github.event.workflow_run.event == 'pull_request' }}
16+ if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.pull_requests.length > 0 }}
1717 steps :
1818 - uses : actions/github-script@v7
1919 with :
3030
3131 const pullNumber = context.payload.workflow_run.pull_requests[0].number;
3232 const artifactId = artifacts.data.artifacts[0].id;
33- const artifactUrl = `${context.payload.workflow_run.artifacts_url} /${artifactId}`;
33+ const artifactUrl = `${context.payload.workflow_run.html_url}/artifacts /${artifactId}`;
3434 const commentBody = `<!-- build-artifact-comment -->\n📦 Docs artifacts are ready: ${artifactUrl}`;
3535
3636 const comments = await github.rest.issues.listComments({
You can’t perform that action at this time.
0 commit comments