|
61 | 61 | content-source-match: ${{ steps.event-check.outputs.content-source-match != '' && steps.event-check.outputs.content-source-match || steps.match.outputs.content-source-match }} |
62 | 62 | content-source-next: ${{ steps.event-check.outputs.content-source-next != '' && steps.event-check.outputs.content-source-next || steps.match.outputs.content-source-next }} |
63 | 63 | content-source-current: ${{ steps.event-check.outputs.content-source-current != '' && steps.event-check.outputs.content-source-current || steps.match.outputs.content-source-current }} |
| 64 | + content-source-speculative: ${{ steps.event-check.outputs.content-source-speculative != '' && steps.event-check.outputs.content-source-speculative || steps.match.outputs.content-source-speculative }} |
64 | 65 | steps: |
65 | 66 | - name: Not a push event |
66 | 67 | id: event-check |
|
70 | 71 | echo "content-source-match=true" >> $GITHUB_OUTPUT |
71 | 72 | echo "content-source-next=false" >> $GITHUB_OUTPUT |
72 | 73 | echo "content-source-current=false" >> $GITHUB_OUTPUT |
| 74 | + echo "content-source-speculative=false" >> $GITHUB_OUTPUT |
73 | 75 | - name: Match for push events |
74 | 76 | id: match |
75 | 77 | if: contains(fromJSON('["push"]'), github.event_name) |
|
83 | 85 | echo "content-source-match=${{ steps.event-check.outputs.content-source-match != '' && steps.event-check.outputs.content-source-match || steps.match.outputs.content-source-match }}" |
84 | 86 | echo "content-source-next=${{ steps.event-check.outputs.content-source-next != '' && steps.event-check.outputs.content-source-next || steps.match.outputs.content-source-next }}" |
85 | 87 | echo "content-source-current=${{ steps.event-check.outputs.content-source-current != '' && steps.event-check.outputs.content-source-current || steps.match.outputs.content-source-current }}" |
| 88 | + echo "content-source-speculative=${{ steps.event-check.outputs.content-source-speculative != '' && steps.event-check.outputs.content-source-speculative || steps.match.outputs.content-source-speculative }}" |
86 | 89 | echo "ref=${{ github.ref_name }}" |
87 | 90 | echo "repo=${{ github.repository }}" |
88 | 91 |
|
@@ -233,7 +236,11 @@ jobs: |
233 | 236 | if: | |
234 | 237 | env.MATCH == 'true' && |
235 | 238 | (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) |
236 | | - && (needs.match.outputs.content-source-current == 'true' || needs.match.outputs.content-source-next == 'true') |
| 239 | + && ( |
| 240 | + needs.match.outputs.content-source-current == 'true' |
| 241 | + || needs.match.outputs.content-source-next == 'true' |
| 242 | + || needs.match.outputs.content-source-speculative == 'true' |
| 243 | + ) |
237 | 244 | && steps.s3-upload.outcome == 'success') |
238 | 245 | uses: elastic/docs-builder/actions/update-link-index@main |
239 | 246 |
|
|
0 commit comments