diff --git a/action/dist/index.js b/action/dist/index.js index 4f0cbf2c..c5c31fbd 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -1,4 +1,4 @@ -module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t);var n=r(85622);var i=r.n(n);var a=r(60270);var o=r(3584);var s=r(32882);var l=r.n(s);var c=r(29483);var u=r.n(c);var d=r(2390);var p=r.n(d);(async function(){const[e,t,r,n,l]=[s,c,o,d,a].map(e=>e&&e.default?e.default:e);const u=(e,t=false)=>typeof e==="string"?/^(?:[Tt]rue|[Oo]n|[Yy]es)$/.test(e):t;try{console.log(`GitHub metrics as SVG image`);console.log(`========================================================`);console.log(`Version | 1.8.0`);process.on("unhandledRejection",e=>{throw e});if(t.eventName==="push"&&t.context.payload&&t.context.payload.head_commit){if(/\[Skip GitHub Action\]/.test(t.context.payload.head_commit.message)){console.log(`Skipped because [Skip GitHub Action] is in commit message`);process.exit(0)}}const n=` +module.exports=(()=>{var __webpack_modules__={76677:(e,t,r)=>{"use strict";r.r(t);var n=r(85622);var i=r.n(n);var a=r(60270);var o=r(3584);var s=r(32882);var l=r.n(s);var c=r(29483);var u=r.n(c);var d=r(2390);var p=r.n(d);(async function(){const[e,t,r,n,l]=[s,c,o,d,a].map(e=>e&&e.default?e.default:e);const u=(e,t=false)=>typeof e==="string"?/^(?:[Tt]rue|[Oo]n|[Yy]es)$/.test(e):t;try{console.log(`GitHub metrics as SVG image`);console.log(`========================================================`);console.log(`Version | 1.8.0`);process.on("unhandledRejection",e=>{throw e});console.log(t.eventName==="push",t.context.payload,t.context.payload.head_commit);if(t.eventName==="push"&&t.context.payload&&t.context.payload.head_commit){console.log(t.context.payload.head_commit.message);if(/\[Skip GitHub Action\]/.test(t.context.payload.head_commit.message)){console.log(`Skipped because [Skip GitHub Action] is in commit message`);process.exit(0)}}console.log(t.event);const n=` diff --git a/action/index.mjs b/action/index.mjs index d734ecc2..9f02eea6 100644 --- a/action/index.mjs +++ b/action/index.mjs @@ -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>`