File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
2020} ;
2121Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
2222const core = __importStar ( require ( "@actions/core" ) ) ;
23+ // import * as git from '@actions/github'
2324const INPUT = 'skipOnCommitMsg' ;
2425async 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)
Original file line number Diff line number Diff line change 11import * as core from '@actions/core'
2- import * as git from '@actions/github'
2+ // import * as git from '@actions/github'
33
44const 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)
You can’t perform that action at this time.
0 commit comments