mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 22:49:08 +08:00
CI fix
This commit is contained in:
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'
|
||||
})
|
||||
|
4
packages/cache/src/cache.ts
vendored
4
packages/cache/src/cache.ts
vendored
@ -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…
x
Reference in New Issue
Block a user