move github.context logging from collect_all to action.js

This commit is contained in:
2023-12-06 11:53:38 +01:00
parent cd3f3c67f2
commit 4c3315660d
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -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);
})();
+5
View File
@@ -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);
-5
View File
@@ -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)