Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Oct 22, 2024
1 parent 02d4644 commit 9ee5002
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29985,7 +29985,9 @@ const generator_1 = __nccwpck_require__(2965);
const GITHUB_TOKEN = node_process_1.default.env.GITHUB_TOKEN;
(0, core_1.startGroup)(`[base] github.context`);
(0, core_1.info)(`context:${JSON.stringify(github_1.context)}`);
(0, core_1.info)(`eventName:${github_1.context.payload.eventName}`);
(0, core_1.endGroup)();
(0, core_1.startGroup)(`[base] info`);
(0, core_1.info)(`eventName:${github_1.context.eventName}`);
(0, core_1.info)(`action:${github_1.context.payload.action}`);
(0, core_1.endGroup)();
// console.log('payload', context.payload);
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { generatorLogStart } from './generator'
const GITHUB_TOKEN = process.env.GITHUB_TOKEN
startGroup(`[base] github.context`)
info(`context:${JSON.stringify(context)}`)
info(`eventName:${context.payload.eventName}`)
endGroup()

startGroup(`[base] info`)
info(`eventName:${context.eventName}`)
info(`action:${context.payload.action}`)
endGroup()

Expand Down

0 comments on commit 9ee5002

Please sign in to comment.