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

@@ -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=`<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});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=`<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} \${style}
</style> </style>

View File

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