Skip to content

Commit 13d10fb

Browse files
committed
Avoid clashes between the database files
The database files corresponding to the different CPU architectures all share identical names, which is a problem when uploading them as assets to a combined GitHub Release. Let's transform the filenames to avoid those clashes. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ac3a028 commit 13d10fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/initialize-releases.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
5353
const targets = []
5454
for (name of release.names) {
55-
const target = name.replace(/.*\//, '')
55+
const target = name
56+
.replace(/^(i686|x86_64|aarch64)\/(git-for-windows)\./, '$2-$1.') // avoid filename conflicts
57+
.replace(/.*\//, '')
5658
console.log(`downloading ${baseURL}${name} to ${target}`)
5759
// call on curl to download the file
5860
run('curl', ['-sfLo', target, `${baseURL}${name}`])

0 commit comments

Comments
 (0)