Merge pull request #36 from DeterminateSystems/grahamc-patch-1

Stop setting the default source branch to 'main'
This commit is contained in:
Graham Christensen 2024-03-06 11:18:09 -05:00 committed by GitHub
commit 54acdd10fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,6 @@ inputs:
source-branch: source-branch:
description: The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options. description: The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
required: false required: false
default: main
source-pr: source-pr:
description: The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options. description: The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
required: false required: false

2
dist/index.js generated vendored
View file

@ -12135,7 +12135,7 @@ function getCacherUrl() {
if (coreExports.getInput('source-revision')) { if (coreExports.getInput('source-revision')) {
return `${urlPrefix}/rev/${coreExports.getInput('source-revision')}/${binarySuffix}`; return `${urlPrefix}/rev/${coreExports.getInput('source-revision')}/${binarySuffix}`;
} }
return `${urlPrefix}/latest/${binarySuffix}`; return `${urlPrefix}/stable/${binarySuffix}`;
} }
async function fetchAutoCacher(destination) { async function fetchAutoCacher(destination) {
const stream = createWriteStream(destination, { const stream = createWriteStream(destination, {

View file

@ -55,7 +55,7 @@ function getCacherUrl() : string {
return `${urlPrefix}/rev/${core.getInput('source-revision')}/${binarySuffix}`; return `${urlPrefix}/rev/${core.getInput('source-revision')}/${binarySuffix}`;
} }
return `${urlPrefix}/latest/${binarySuffix}`; return `${urlPrefix}/stable/${binarySuffix}`;
} }
async function fetchAutoCacher(destination: string) { async function fetchAutoCacher(destination: string) {