Skip to content

Commit f781f99

Browse files
authored
Fix download-artifacts on main branch (#2972)
The Artifacts Snapshot API still uses 'master'.
1 parent 3b1143a commit f781f99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/download-artifacts/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ async function downloadArtifacts (opts) {
9595
}
9696

9797
async function resolve (branch) {
98+
if (branch == 'main') {
99+
branch = 'master'
100+
}
98101
const url = `https://artifacts-snapshot.elastic.co/elasticsearch/latest/${branch}.json`
99102
const response = await fetch(url)
100103
if (!response.ok) {

0 commit comments

Comments
 (0)