Skip to content

Commit

Permalink
Fix download-artifacts on main branch (#2972)
Browse files Browse the repository at this point in the history
The Artifacts Snapshot API still uses 'master'.
  • Loading branch information
pquentin authored Oct 2, 2024
1 parent 3b1143a commit f781f99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/download-artifacts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f781f99

Please sign in to comment.