Skip to content

Commit b63de80

Browse files
feat(*): next try
1 parent 255b066 commit b63de80

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
2020
};
2121
Object.defineProperty(exports, "__esModule", { value: true });
2222
const core = __importStar(require("@actions/core"));
23+
// import * as git from '@actions/github'
2324
const INPUT = 'skipOnCommitMsg';
2425
async function run() {
2526
try {
2627
core.debug('start working');
2728
const skipOnCommitMsg = core.getInput(INPUT);
2829
console.log(`skip CI on commit message ${skipOnCommitMsg}`);
29-
core.setFailed(`stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>`);
30+
core.setOutput('shouldExecute', false);
31+
// `<!--stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>-->`)
3032
// const ghToken = core.getInput()
3133
// git.getOctokit()
3234
// console.log(git.context.payload)

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from '@actions/core'
2-
import * as git from '@actions/github'
2+
// import * as git from '@actions/github'
33

44
const INPUT = 'skipOnCommitMsg'
55

@@ -8,7 +8,8 @@ async function run() {
88
core.debug('start working')
99
const skipOnCommitMsg = core.getInput(INPUT)
1010
console.log(`skip CI on commit message ${skipOnCommitMsg}`)
11-
core.setFailed(`stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>`)
11+
core.setOutput('shouldExecute', false)
12+
// `<!--stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>-->`)
1213
// const ghToken = core.getInput()
1314
// git.getOctokit()
1415
// console.log(git.context.payload)

0 commit comments

Comments
 (0)