mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
fixup: uploaded binary name
This commit is contained in:
parent
00faa49c9f
commit
095d24c180
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ const gotClient = got.extend({
|
||||||
function getCacherUrl() : string {
|
function getCacherUrl() : string {
|
||||||
const runnerArch = process.env.RUNNER_ARCH;
|
const runnerArch = process.env.RUNNER_ARCH;
|
||||||
const runnerOs = process.env.RUNNER_OS;
|
const runnerOs = process.env.RUNNER_OS;
|
||||||
const binarySuffix = `${runnerArch}-${runnerOs}`;
|
const binarySuffix = `magic-nix-cache-${runnerArch}-${runnerOs}`;
|
||||||
const urlPrefix = `https://magic-nix-cache-priv20231208150408868500000001.s3.us-east-2.amazonaws.com`;
|
const urlPrefix = `https://magic-nix-cache-priv20231208150408868500000001.s3.us-east-2.amazonaws.com`;
|
||||||
|
|
||||||
if (core.getInput('source-url')) {
|
if (core.getInput('source-url')) {
|
||||||
|
@ -44,7 +44,7 @@ function getCacherUrl() : string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (core.getInput('source-pr')) {
|
if (core.getInput('source-pr')) {
|
||||||
return `${urlPrefix}/pr_${core.getInput('source-pr')}/magic-nix-cache-${binarySuffix}`;
|
return `${urlPrefix}/pr_${core.getInput('source-pr')}/${binarySuffix}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (core.getInput('source-branch')) {
|
if (core.getInput('source-branch')) {
|
||||||
|
|
Loading…
Reference in a new issue