ci: auto-regenerate files

This commit is contained in:
lowlighter
2022-11-21 19:08:23 -05:00
parent 24029ffa89
commit 99b1c5bd86
7 changed files with 125 additions and 16 deletions

View File

@@ -55,12 +55,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
-%>
<tr>
<% } %> <th><% if (plugin) { %><a href="source/plugins/community/<%= plugin %>/README.md"><%= name -%></a><br><sup>by <%- authors.map(author => `<a href="https://github.com/${author}">@${author}</a>`).join(" ") %></sup>
<%- readme.demo.replace(/<td.*?>([\s\S]+?)<\/td>/, `<details><summary>Render example</summary>$1</details>`).replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %>
<% } %>
</th>
<%- readme.demo.replace(/<td.*?>([\s\S]+?)<\/td>/, ` <details><summary>Render example</summary>$1</details>`).replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %><% } %>
</th>
<% if (cell === "odd") {
-%> </tr>
<% }}}} %>
<% }}}} %><%# -%>
<% {
let cell = 0
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))

View File

@@ -20,6 +20,8 @@ on:
required: true
SPLATOON_TOKEN:
required: true
SPLATOON_STATINK_TOKEN:
required: true
SPOTIFY_TOKENS:
required: true
STOCK_TOKEN:
@@ -1149,7 +1151,7 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
- name: 🦑 Splatoon - Example
- name: 🦑 Splatoon - Splatnet data with stat.ink integration
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.splatoon.svg
@@ -1157,6 +1159,8 @@ jobs:
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
plugin_splatoon_statink: yes
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
extras_css: |
h2 { display: none !important; }
output_action: none