File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5858 if (context.payload.workflow_run.conclusion === "success") {
5959 return ["en"]
6060 }
61- throw new Error(`It was a workflow_run but not success ('${context.payload.workflow_run.conclusion}')`)
61+ console.warn(`NOTE! It was a workflow_run but not success ('${context.payload.workflow_run.conclusion}')`)
62+ console.warn("This means we're not going to index anything in the next dependent step.")
63+ return []
6264 }
6365
6466 if (context.eventName === "workflow_dispatch") {
9597 updateElasticsearchIndexes :
9698 needs : figureOutMatrix
9799 name : Update indexes
98- if : ${{ github.repository == 'github/docs-internal' }}
100+ if : ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }}
99101 runs-on : ubuntu-20.04-xl
100102 strategy :
101103 fail-fast : false
You can’t perform that action at this time.
0 commit comments