From 658076181f4ea57e3fab194d4e70afe3896a1b66 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Thu, 13 Mar 2025 12:06:08 +0100 Subject: [PATCH] Build docs on `master` branches too for repositories not moved over to main --- .github/workflows/preview-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 197a624a4..1ce93b9d9 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -9,6 +9,7 @@ on: push: branches: - main + - master workflow_call: inputs: strict: @@ -163,11 +164,11 @@ jobs: --paths "${PATH_PREFIX}" "${PATH_PREFIX}/*" - name: Update Link Index - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success' uses: elastic/docs-builder/actions/update-link-index@main - name: Update Reference Index - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.s3-upload.outcome == 'success' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.s3-upload.outcome == 'success' uses: elastic/docs-builder/actions/update-reference-index@main - name: Update deployment status