mirror of https://github.com/actions/toolkit
CI fix
parent
429adbf862
commit
05f407f4ff
|
@ -3,9 +3,6 @@
|
|||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
const filePath = process.env[`GITHUB_ENV`]
|
||||
fs.appendFileSync(filePath, `ACTIONS_RUNTIME_URL=${process.env.ACTIONS_RUNTIME_URL}${os.EOL}`, {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
|
|
|
@ -45,11 +45,11 @@ function checkKey(key: string): void {
|
|||
|
||||
/**
|
||||
* isEnable to check the presence of Artifact cache service
|
||||
*
|
||||
*
|
||||
* @returns boolean return true if Artifact cache service is enable, otherwise false
|
||||
*/
|
||||
|
||||
export function isEnable(): boolean {
|
||||
export function isEnable(): boolean {
|
||||
if (process.env['ACTIONS_CACHE_URL']) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue