Update the fixture to ESM syntax
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
name: 'Set env variables'
|
name: 'Set env variables'
|
||||||
description: 'Sets certain env variables so that e2e restore and save cache can be tested in a shell'
|
description: 'Sets certain env variables so that e2e restore and save cache can be tested in a shell'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node20'
|
||||||
main: 'index.js'
|
main: 'index.js'
|
||||||
+4
-3
@@ -1,8 +1,9 @@
|
|||||||
// Certain env variables are not set by default in a shell context and are only available in a node context from a running action
|
// Certain env variables are not set by default in a shell context and are only available in a node context from a running action
|
||||||
// In order to be able to restore and save cache e2e in a shell when running CI tests, we need these env variables set
|
// In order to be able to restore and save cache e2e in a shell when running CI tests, we need these env variables set
|
||||||
const fs = require('fs');
|
import fs from 'fs'
|
||||||
const os = require('os');
|
import os from 'os'
|
||||||
const filePath = process.env[`GITHUB_ENV`]
|
|
||||||
|
const filePath = process.env['GITHUB_ENV']
|
||||||
fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true${os.EOL}`, {
|
fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true${os.EOL}`, {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user