mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-23 01:49:07 +08:00
CI fix
This commit is contained in:
parent
429adbf862
commit
05f407f4ff
@ -3,9 +3,6 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
const filePath = process.env[`GITHUB_ENV`]
|
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}`, {
|
fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
})
|
})
|
||||||
|
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
@ -49,7 +49,7 @@ function checkKey(key: string): void {
|
|||||||
* @returns boolean return true if Artifact cache service is enable, otherwise false
|
* @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']) {
|
if (process.env['ACTIONS_CACHE_URL']) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user