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 hugoBinName = this.platform.binaryName(Hugo.CmdName)
|
||||||
const tmpDir = os.tmpdir()
|
const tmpDir = os.tmpdir()
|
||||||
|
|
||||||
|
let versionSpec = release.tag_name
|
||||||
|
if (cmd.extended) {
|
||||||
|
versionSpec += '+extended'
|
||||||
|
}
|
||||||
|
if (cmd.withDeploy) {
|
||||||
|
versionSpec += '+withdeploy'
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const cachedTool = tc.find(
|
const cachedTool = tc.find(Hugo.Name, versionSpec, this.platform.arch)
|
||||||
Hugo.Name,
|
|
||||||
release.tag_name,
|
|
||||||
this.platform.arch
|
|
||||||
)
|
|
||||||
if (cachedTool) {
|
if (cachedTool) {
|
||||||
core.addPath(cachedTool)
|
core.addPath(cachedTool)
|
||||||
return
|
return
|
||||||
|
@ -81,7 +85,7 @@ export class HugoInstaller {
|
||||||
path.join(tmpDir, hugoBinName),
|
path.join(tmpDir, hugoBinName),
|
||||||
hugoBinName,
|
hugoBinName,
|
||||||
Hugo.Name,
|
Hugo.Name,
|
||||||
release.tag_name,
|
versionSpec,
|
||||||
this.platform.arch
|
this.platform.arch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue