move github.context logging from collect_all to action.js
This commit is contained in:
parent
cd3f3c67f2
commit
4c3315660d
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -31260,11 +31260,6 @@ function collect_git(debug = false, output = false) {
|
||||
|
||||
|
||||
function collect_all(debug = false, output = false) {
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
return {
|
||||
...collect_ci(debug, output),
|
||||
...collect_git(debug, output)
|
||||
@ -31276,8 +31271,13 @@ function collect_all(debug = false, output = false) {
|
||||
|
||||
|
||||
|
||||
|
||||
const debug = isTrueString(process.env['ACTIONS_STEP_DEBUG']);
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
collect_all(debug, true);
|
||||
|
||||
})();
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
import * as github from '@actions/github';
|
||||
import {collect_all} from './index';
|
||||
import {isTrueString} from './lib';
|
||||
|
||||
const debug = isTrueString(process.env['ACTIONS_STEP_DEBUG']);
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
collect_all(debug, true);
|
||||
|
||||
@ -7,11 +7,6 @@ export {collect_git} from './collect_git';
|
||||
export {collect_ci} from './collect_ci';
|
||||
|
||||
export function collect_all(debug = false, output = false) {
|
||||
|
||||
if (debug) {
|
||||
console.log(JSON.stringify(github.context, null, 2));
|
||||
}
|
||||
|
||||
return {
|
||||
...collect_ci(debug, output),
|
||||
...collect_git(debug, output)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user