mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-06 11:31:37 +00:00
deps: update devDependencies (#558)
This commit is contained in:
1 parent
1fd941c40a
commit
4b77300e3c
3 files changed
+598
-417
No files matched your search
@@ -10,7 +10,7 @@ beforeEach(() => {
|
||||
process.stdout.write = jest.fn();
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
|
||||
const doc: any = yaml.load(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
|
||||
Object.keys(doc.inputs).forEach(name => {
|
||||
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
|
||||
process.env[envVar] = doc.inputs[name]['default'];
|
||||
@@ -19,7 +19,7 @@ beforeEach(() => {
|
||||
|
||||
afterEach(() => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
|
||||
const doc: any = yaml.load(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
|
||||
Object.keys(doc.inputs).forEach(name => {
|
||||
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
|
||||
console.debug(`delete ${envVar}\t${process.env[envVar]}`);
|
||||
|
||||
Reference in new issue
Block a user