Skip to content

Commit a6c6720

Browse files
feat(*): next try
1 parent 33d3e39 commit a6c6720

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ async function run() {
3838
try {
3939
const skipOnCommitMsg = core.getInput(INPUT_PARAMS.SKIP_ON_COMMIT_MSG);
4040
const ghToken = core.getInput(INPUT_PARAMS.GH_TOKEN);
41-
core.debug(`reading git commit message to resolve the output variable, output variable will be true if commit message contains message "${skipOnCommitMsg}"`);
42-
const octokit = github.getOctokit(ghToken);
43-
octokit.rest;
41+
core.info(`reading git commit message to resolve the output variable, output variable will be true if commit message contains message "${skipOnCommitMsg}"`);
4442
const { eventName } = github.context;
4543
core.info(`event name: ${eventName}`);
4644
let sha = '';
@@ -61,7 +59,7 @@ async function run() {
6159
core.info(`fetch commit with url: ${url}`);
6260
const commit = (await fetch(url, ghToken)); /* and others */
6361
const commitMessage = commit.message;
64-
core.info(`commit message to check against ${commitMessage}`);
62+
core.info(`commit message to check against "${commitMessage}"`);
6563
if (commitMessage.includes(skipOnCommitMsg)) {
6664
core.info(`commit message includes skip message (${skipOnCommitMsg}) -> set output ${OUTPUT_PARAMS.SHOULD_EXECUTE} = false`);
6765
core.setOutput(OUTPUT_PARAMS.SHOULD_EXECUTE, false);

src/main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ async function run() {
1616
const skipOnCommitMsg = core.getInput(INPUT_PARAMS.SKIP_ON_COMMIT_MSG)
1717
const ghToken = core.getInput(INPUT_PARAMS.GH_TOKEN)
1818

19-
core.debug(`reading git commit message to resolve the output variable, output variable will be true if commit message contains message "${skipOnCommitMsg}"`)
20-
21-
const octokit = github.getOctokit(ghToken)
22-
octokit.rest
19+
core.info(`reading git commit message to resolve the output variable, output variable will be true if commit message contains message "${skipOnCommitMsg}"`)
2320

2421
const { eventName } = github.context
2522
core.info(`event name: ${eventName}`)
@@ -43,7 +40,7 @@ async function run() {
4340
const commit = (await fetch(url, ghToken)) as { message: string } /* and others */
4441

4542
const commitMessage = commit.message
46-
core.info(`commit message to check against ${commitMessage}`)
43+
core.info(`commit message to check against "${commitMessage}"`)
4744

4845
if (commitMessage.includes(skipOnCommitMsg)) {
4946
core.info(`commit message includes skip message (${skipOnCommitMsg}) -> set output ${OUTPUT_PARAMS.SHOULD_EXECUTE} = false`)

0 commit comments

Comments
 (0)