diff --git a/.github/download-artifacts/index.js b/.github/download-artifacts/index.js index 75d43aab0d..7cc52afe50 100644 --- a/.github/download-artifacts/index.js +++ b/.github/download-artifacts/index.js @@ -95,6 +95,9 @@ async function downloadArtifacts (opts) { } async function resolve (branch) { + if (branch == 'main') { + branch = 'master' + } const url = `https://artifacts-snapshot.elastic.co/elasticsearch/latest/${branch}.json` const response = await fetch(url) if (!response.ok) {