mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 17:30:34 +01:00
Merge pull request #36 from DeterminateSystems/grahamc-patch-1
Stop setting the default source branch to 'main'
This commit is contained in:
commit
54acdd10fd
3 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ inputs:
|
|||
source-branch:
|
||||
description: The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
||||
required: false
|
||||
default: main
|
||||
source-pr:
|
||||
description: The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
||||
required: false
|
||||
|
|
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -12135,7 +12135,7 @@ function getCacherUrl() {
|
|||
if (coreExports.getInput('source-revision')) {
|
||||
return `${urlPrefix}/rev/${coreExports.getInput('source-revision')}/${binarySuffix}`;
|
||||
}
|
||||
return `${urlPrefix}/latest/${binarySuffix}`;
|
||||
return `${urlPrefix}/stable/${binarySuffix}`;
|
||||
}
|
||||
async function fetchAutoCacher(destination) {
|
||||
const stream = createWriteStream(destination, {
|
||||
|
|
|
@ -55,7 +55,7 @@ function getCacherUrl() : string {
|
|||
return `${urlPrefix}/rev/${core.getInput('source-revision')}/${binarySuffix}`;
|
||||
}
|
||||
|
||||
return `${urlPrefix}/latest/${binarySuffix}`;
|
||||
return `${urlPrefix}/stable/${binarySuffix}`;
|
||||
}
|
||||
|
||||
async function fetchAutoCacher(destination: string) {
|
||||
|
|
Loading…
Reference in a new issue