mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-23 13:32:03 +01:00
Merge pull request #9 from DeterminateSystems/fixup-binary-name
fixup: uploaded binary name
This commit is contained in:
commit
243e6641b4
2 changed files with 4 additions and 4 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -12118,7 +12118,7 @@ const gotClient = got$1.extend({
|
||||||
function getCacherUrl() {
|
function getCacherUrl() {
|
||||||
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 (coreExports.getInput('source-url')) {
|
if (coreExports.getInput('source-url')) {
|
||||||
return coreExports.getInput('source-url');
|
return coreExports.getInput('source-url');
|
||||||
|
@ -12127,7 +12127,7 @@ function getCacherUrl() {
|
||||||
return `${urlPrefix}/tag/${coreExports.getInput('source-tag')}/${binarySuffix}`;
|
return `${urlPrefix}/tag/${coreExports.getInput('source-tag')}/${binarySuffix}`;
|
||||||
}
|
}
|
||||||
if (coreExports.getInput('source-pr')) {
|
if (coreExports.getInput('source-pr')) {
|
||||||
return `${urlPrefix}/pr_${coreExports.getInput('source-pr')}/magic-nix-cache-${binarySuffix}`;
|
return `${urlPrefix}/pr_${coreExports.getInput('source-pr')}/${binarySuffix}`;
|
||||||
}
|
}
|
||||||
if (coreExports.getInput('source-branch')) {
|
if (coreExports.getInput('source-branch')) {
|
||||||
return `${urlPrefix}/branch/${coreExports.getInput('source-branch')}/${binarySuffix}`;
|
return `${urlPrefix}/branch/${coreExports.getInput('source-branch')}/${binarySuffix}`;
|
||||||
|
|
|
@ -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