10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e3247 commit ee05ae7Copy full SHA for ee05ae7
src/main.ts
@@ -10,8 +10,10 @@ async function run() {
10
console.log(`skip CI on commit message ${skipOnCommitMsg}`)
11
12
console.log(JSON.stringify(git.context))
13
-
14
- core.setFailed('skip CI')
+ const commitMessage = git.context.payload.head_commit.message
+ if (commitMessage.includes(skipOnCommitMsg)) {
15
+ core.setFailed(`stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>`)
16
+ }
17
} catch (error) {
18
core.setFailed(error.message)
19
}
0 commit comments