Debug v1.8

This commit is contained in:
lowlighter
2020-10-18 01:31:10 +02:00
parent 12ad05f751
commit 8a7989ff12
2 changed files with 4 additions and 1 deletions

View File

@@ -20,12 +20,15 @@
process.on("unhandledRejection", error => { throw error })
//Skip process if needed
console.log((github.eventName === "push"), github.context.payload, github.context.payload.head_commit)
if ((github.eventName === "push")&&(github.context.payload)&&(github.context.payload.head_commit)) {
console.log(github.context.payload.head_commit.message)
if (/\[Skip GitHub Action\]/.test(github.context.payload.head_commit.message)) {
console.log(`Skipped because [Skip GitHub Action] is in commit message`)
process.exit(0)
}
}
console.log(github.event)
//Load svg template, style and query
const template = `<#include template.svg>`, style = `<#include style.css>`, query = `<#include query.graphql>`