fix: include extended & with deploy in tool version for proper caching
Some checks failed
Some checks failed
This commit is contained in:
parent
10b6b9aa45
commit
ad69e54f1e
1 changed files with 10 additions and 6 deletions
16
src/hugo.ts
16
src/hugo.ts
|
@ -41,12 +41,16 @@ export class HugoInstaller {
|
|||
const hugoBinName = this.platform.binaryName(Hugo.CmdName)
|
||||
const tmpDir = os.tmpdir()
|
||||
|
||||
let versionSpec = release.tag_name
|
||||
if (cmd.extended) {
|
||||
versionSpec += '+extended'
|
||||
}
|
||||
if (cmd.withDeploy) {
|
||||
versionSpec += '+withdeploy'
|
||||
}
|
||||
|
||||
try {
|
||||
const cachedTool = tc.find(
|
||||
Hugo.Name,
|
||||
release.tag_name,
|
||||
this.platform.arch
|
||||
)
|
||||
const cachedTool = tc.find(Hugo.Name, versionSpec, this.platform.arch)
|
||||
if (cachedTool) {
|
||||
core.addPath(cachedTool)
|
||||
return
|
||||
|
@ -81,7 +85,7 @@ export class HugoInstaller {
|
|||
path.join(tmpDir, hugoBinName),
|
||||
hugoBinName,
|
||||
Hugo.Name,
|
||||
release.tag_name,
|
||||
versionSpec,
|
||||
this.platform.arch
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue