Fix function export
This commit is contained in:
parent
bbfa6c0644
commit
d351853bc1
|
@ -1,5 +1,10 @@
|
||||||
const { API_RESULT, E2E_RESULT, k6_RESULT, PLUGINS_BLOCKS_PATH } = process.env;
|
module.exports = ( { core } ) => {
|
||||||
const { selectEmoji, readContextBlocksFromJsonFiles } = require( './utils' );
|
const { API_RESULT, E2E_RESULT, k6_RESULT, PLUGINS_BLOCKS_PATH } =
|
||||||
|
process.env;
|
||||||
|
const {
|
||||||
|
selectEmoji,
|
||||||
|
readContextBlocksFromJsonFiles,
|
||||||
|
} = require( './utils' );
|
||||||
|
|
||||||
const block_header = {
|
const block_header = {
|
||||||
type: 'header',
|
type: 'header',
|
||||||
|
@ -44,7 +49,8 @@ const block_nightlySite = {
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const blocks_plugins = readContextBlocksFromJsonFiles( PLUGINS_BLOCKS_PATH );
|
const blocks_plugins =
|
||||||
|
readContextBlocksFromJsonFiles( PLUGINS_BLOCKS_PATH );
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
blocks: [ block_header, block_nightlySite, ...blocks_plugins ],
|
blocks: [ block_header, block_nightlySite, ...blocks_plugins ],
|
||||||
|
@ -53,3 +59,4 @@ const payload = {
|
||||||
const payload_stringified = JSON.stringify( payload );
|
const payload_stringified = JSON.stringify( payload );
|
||||||
|
|
||||||
core.setOuput( 'payload', payload_stringified );
|
core.setOuput( 'payload', payload_stringified );
|
||||||
|
};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
module.exports = ( { core } ) => {
|
||||||
const { UPLOAD_RESULT, E2E_RESULT, PLUGIN_NAME, PLUGIN_SLUG } = process.env;
|
const { UPLOAD_RESULT, E2E_RESULT, PLUGIN_NAME, PLUGIN_SLUG } = process.env;
|
||||||
const { selectEmoji } = require( './utils' );
|
const { selectEmoji } = require( './utils' );
|
||||||
const fs = require( 'fs' );
|
const fs = require( 'fs' );
|
||||||
|
@ -36,3 +37,4 @@ const path = `/tmp/${ PLUGIN_SLUG }.json`;
|
||||||
fs.writeFileSync( path, block_stringified );
|
fs.writeFileSync( path, block_stringified );
|
||||||
|
|
||||||
core.setOutput( 'path', path );
|
core.setOutput( 'path', path );
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue