8000 commit with message sample, to let the build fail · shiftcode/github-action-skip@c1cf902 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1cf902

Browse files
commit with message sample, to let the build fail
1 parent ee05ae7 commit c1cf902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ async function run() {
99
const skipOnCommitMsg = core.getInput(INPUT)
1010
console.log(`skip CI on commit message ${skipOnCommitMsg}`)
1111

12+
core.startGroup('Expand to see the github context')
1213
console.log(JSON.stringify(git.context))
14+
core.endGroup()
15+
1316
const commitMessage = git.context.payload.head_commit.message
1417
if (commitMessage.includes(skipOnCommitMsg)) {
1518
core.setFailed(`stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>`)

0 commit comments

Comments
 (0)
0