Remove debug v1.8
This commit is contained in:
2
action/dist/index.js
vendored
2
action/dist/index.js
vendored
@@ -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});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);process.exit(0);const n=`<svg xmlns="http://www.w3.org/2000/svg" width="480" height="\${485 + ((computed.plugins.lines||computed.plugins.traffic) ? 20 : 0) + (computed.plugins.pagespeed ? 130 : 0) + (computed.plugins.habits ? 70 : 0)}">
|
||||
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.context.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)}}const n=`<svg xmlns="http://www.w3.org/2000/svg" width="480" height="\${485 + ((computed.plugins.lines||computed.plugins.traffic) ? 20 : 0) + (computed.plugins.pagespeed ? 130 : 0) + (computed.plugins.habits ? 70 : 0)}">
|
||||
<style>
|
||||
\${style}
|
||||
</style>
|
||||
|
||||
@@ -20,16 +20,13 @@
|
||||
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)) {
|
||||
if ((github.context.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)
|
||||
process.exit(0)
|
||||
|
||||
//Load svg template, style and query
|
||||
const template = `<#include template.svg>`, style = `<#include style.css>`, query = `<#include query.graphql>`
|
||||
|
||||
Reference in New Issue
Block a user