From 381306aae44a77dd61a83c51aa193e5a2b4627bf Mon Sep 17 00:00:00 2001
From: lowlighter <22963968+lowlighter@users.noreply.github.com>
Date: Tue, 17 Jan 2023 12:40:54 -0500
Subject: [PATCH] ci: update sponsorships example token [skip test]
---
.../partials/documentation/compatibility.md | 36 +++++------
.github/workflows/examples.yml | 62 +++++++++----------
README.md | 16 ++---
action.yml | 40 ++++++------
settings.example.json | 10 +--
source/plugins/introduction/metadata.yml | 2 +-
source/plugins/skyline/metadata.yml | 2 +-
source/plugins/sponsorships/README.md | 4 +-
source/plugins/sponsorships/examples.yml | 4 +-
source/plugins/sponsorships/metadata.yml | 1 +
tests/cases/sponsorships.plugin.yml | 2 +-
11 files changed, 90 insertions(+), 89 deletions(-)
diff --git a/.github/readme/partials/documentation/compatibility.md b/.github/readme/partials/documentation/compatibility.md
index 400b3483..3923c6c5 100644
--- a/.github/readme/partials/documentation/compatibility.md
+++ b/.github/readme/partials/documentation/compatibility.md
@@ -16,7 +16,7 @@
๐๏ธ |
๐ญ |
๐งโ๐คโ๐ง |
- ๐ |
+ ๐ |
๐ |
๐ |
๐ฌ |
@@ -29,8 +29,8 @@
โ |
๐ซ |
๐๏ธ |
+ ๐ |
๐ |
- ๐ |
๐ญ |
โฑ๏ธ |
๐ค |
@@ -57,7 +57,7 @@
โ๏ธ |
โ๏ธ |
โ๏ธ |
- โ๏ธ |
+ โ๏ธ |
โ๏ธ |
โ๏ธ |
โ๏ธ |
@@ -70,8 +70,8 @@
โ๏ธ |
โ๏ธ |
โ๏ธ |
+ โ๏ธ |
โ๏ธ |
- โ๏ธ |
โ๏ธ |
โ๏ธ |
โ๏ธ |
@@ -98,7 +98,7 @@
โ๏ธ |
โ |
โ๏ธ |
- โ๏ธ |
+ โ |
โ๏ธ |
โ |
โ |
@@ -111,8 +111,8 @@
โ |
โ |
โ๏ธ |
+ โ๏ธ |
โ |
- โ |
โ |
โ๏ธ |
โ |
@@ -139,7 +139,7 @@
โ |
โ |
โ |
- โ |
+ โ |
โ |
โ |
โ |
@@ -152,8 +152,8 @@
โ |
โ๏ธ |
โ |
+ โ |
โ |
- โ |
โ |
โ๏ธ |
โ |
@@ -180,7 +180,7 @@
โ |
โ |
โ |
- โ |
+ โ |
โ |
โ |
โ |
@@ -193,8 +193,8 @@
โ |
โ |
โ |
+ โ |
โ |
- โ |
โ |
โ |
โ๏ธ |
@@ -224,7 +224,7 @@
๐๏ธ |
๐ญ |
๐งโ๐คโ๐ง |
- ๐ |
+ ๐ |
๐ |
๐ |
๐ฌ |
@@ -237,8 +237,8 @@
โ |
๐ซ |
๐๏ธ |
+ ๐ |
๐ |
- ๐ |
๐ญ |
โฑ๏ธ |
๐ค |
@@ -265,7 +265,7 @@
โ๏ธ |
โ๏ธ |
โ๏ธ |
- โ๏ธ |
+ โ๏ธ |
โ๏ธ |
โ๏ธ |
โ๏ธ |
@@ -278,8 +278,8 @@
โ๏ธ |
โ๏ธ |
โ๏ธ |
+ โ๏ธ |
โ๏ธ |
- โ๏ธ |
โ๏ธ |
โ๏ธ |
โ๏ธ |
@@ -306,7 +306,7 @@
โ๏ธ |
โ |
โ๏ธ |
- โ๏ธ |
+ โ๏ธ |
โ๏ธ |
โ๏ธ |
โ |
@@ -319,8 +319,8 @@
โ๏ธ |
โ |
โ๏ธ |
+ โ๏ธ |
โ |
- โ๏ธ |
โ |
โ๏ธ |
โ๏ธ |
@@ -347,7 +347,7 @@
โ๏ธ |
โ |
โ๏ธ |
- โ๏ธ |
+ โ |
โ๏ธ |
โ |
โ |
@@ -360,8 +360,8 @@
โ |
โ |
โ๏ธ |
+ โ๏ธ |
โ |
- โ |
โ |
โ๏ธ |
โ |
diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml
index 1321dc35..4e50ebac 100644
--- a/.github/workflows/examples.yml
+++ b/.github/workflows/examples.yml
@@ -506,27 +506,13 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
- - name: ๐ Introduction - Organization introduction
+ - name: ๐ GitHub Sponsorships - ๐ GitHub Sponsorships
uses: lowlighter/metrics@master
with:
- filename: metrics.plugin.introduction.svg
- token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
- user: github
- base: header
- plugin_introduction: yes
- output_action: none
- delay: 120
- plugins_errors_fatal: yes
- if: ${{ success() || failure() }}
- - name: ๐ Introduction - Repository introduction
- uses: lowlighter/metrics@master
- with:
- filename: metrics.plugin.introduction.repository.svg
- token: ${{ secrets.METRICS_TOKEN }}
- template: repository
- repo: metrics
- base: header
- plugin_introduction: yes
+ filename: metrics.plugin.sponsorships.svg
+ token: ${{ secrets.METRICS_TOKEN_PERSONAL }}
+ base: ""
+ plugin_sponsorships: yes
output_action: none
delay: 120
user: lowlighter
@@ -775,6 +761,32 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
+ - name: ๐ Introduction - Organization introduction
+ uses: lowlighter/metrics@master
+ with:
+ filename: metrics.plugin.introduction.svg
+ token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
+ user: github
+ base: header
+ plugin_introduction: yes
+ output_action: none
+ delay: 120
+ plugins_errors_fatal: yes
+ if: ${{ success() || failure() }}
+ - name: ๐ Introduction - Repository introduction
+ uses: lowlighter/metrics@master
+ with:
+ filename: metrics.plugin.introduction.repository.svg
+ token: ${{ secrets.METRICS_TOKEN }}
+ template: repository
+ repo: metrics
+ base: header
+ plugin_introduction: yes
+ output_action: none
+ delay: 120
+ user: lowlighter
+ plugins_errors_fatal: yes
+ if: ${{ success() || failure() }}
- name: ๐ GitHub Skyline - GitHub Skyline
uses: lowlighter/metrics@master
with:
@@ -812,18 +824,6 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
- - name: ๐ GitHub Sponsorships - ๐ GitHub sponsorships
- uses: lowlighter/metrics@master
- with:
- filename: metrics.plugin.sponsorships.svg
- token: ${{ secrets.METRICS_TOKEN }}
- base: ""
- plugin_sponsorships: yes
- output_action: none
- delay: 120
- user: lowlighter
- plugins_errors_fatal: yes
- if: ${{ success() || failure() }}
- name: โฑ๏ธ Google PageSpeed - Succinct report
uses: lowlighter/metrics@master
with:
diff --git a/README.md b/README.md
index 4ddae298..ea353a6e 100644
--- a/README.md
+++ b/README.md
@@ -121,13 +121,12 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
- | ๐ Introduction |
+ ๐ GitHub Sponsorships |
๐ GitHub Sponsors |
- For a user or an organization
- For a repository
+
|
@@ -213,7 +212,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
| ๐๏ธ GitHub projects |
- ๐ GitHub Skyline |
+ ๐ Introduction |
@@ -221,18 +220,19 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
- GitHub Skyline
- GitHub City
+ For a user or an organization
+ For a repository
|
- | ๐ GitHub Sponsorships |
+ ๐ GitHub Skyline |
โฑ๏ธ Google PageSpeed |
-
+ GitHub Skyline
+ GitHub City
|
diff --git a/action.yml b/action.yml
index 52229a17..64976d20 100644
--- a/action.yml
+++ b/action.yml
@@ -612,14 +612,18 @@ inputs:
default:
# ====================================================================================
- # ๐ Introduction
+ # ๐ GitHub Sponsorships
- plugin_introduction:
- description: Enable introduction plugin
+ plugin_sponsorships:
+ description: Enable sponsorships plugin
default:
- plugin_introduction_title:
- description: Section title
+ plugin_sponsorships_sections:
+ description: Displayed sections
+ default:
+
+ plugin_sponsorships_size:
+ description: Profile picture display size
default:
# ====================================================================================
@@ -922,6 +926,17 @@ inputs:
description: Projects descriptions
default:
+ # ====================================================================================
+ # ๐ Introduction
+
+ plugin_introduction:
+ description: Enable introduction plugin
+ default:
+
+ plugin_introduction_title:
+ description: Section title
+ default:
+
# ====================================================================================
# ๐ GitHub Skyline
@@ -949,21 +964,6 @@ inputs:
description: Advanced settings
default:
- # ====================================================================================
- # ๐ GitHub Sponsorships
-
- plugin_sponsorships:
- description: Enable sponsorships plugin
- default:
-
- plugin_sponsorships_sections:
- description: Displayed sections
- default:
-
- plugin_sponsorships_size:
- description: Profile picture display size
- default:
-
# ====================================================================================
# ๐ญ GitHub Community Support
diff --git a/settings.example.json b/settings.example.json
index ec11abd1..b106ec69 100644
--- a/settings.example.json
+++ b/settings.example.json
@@ -101,8 +101,8 @@
"people":{
"enabled": false, "//": "Enable people plugin"
},
- "introduction":{
- "enabled": false, "//": "Enable introduction plugin"
+ "sponsorships":{
+ "enabled": false, "//": "Enable sponsorships plugin"
},
"sponsors":{
"enabled": false, "//": "Enable sponsors plugin"
@@ -140,12 +140,12 @@
"projects":{
"enabled": false, "//": "Enable projects plugin"
},
+ "introduction":{
+ "enabled": false, "//": "Enable introduction plugin"
+ },
"skyline":{
"enabled": false, "//": "Enable skyline plugin"
},
- "sponsorships":{
- "enabled": false, "//": "Enable sponsorships plugin"
- },
"support":{
"enabled": false, "//": "Enable support plugin"
},
diff --git a/source/plugins/introduction/metadata.yml b/source/plugins/introduction/metadata.yml
index 3d794cac..842687c6 100644
--- a/source/plugins/introduction/metadata.yml
+++ b/source/plugins/introduction/metadata.yml
@@ -7,7 +7,7 @@ description: |
examples:
+for a user or an organization: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.introduction.svg
for a repository: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.introduction.repository.svg
-index: 12
+index: 26
supports:
- user
- organization
diff --git a/source/plugins/skyline/metadata.yml b/source/plugins/skyline/metadata.yml
index 31158d76..e99cde40 100644
--- a/source/plugins/skyline/metadata.yml
+++ b/source/plugins/skyline/metadata.yml
@@ -7,7 +7,7 @@ notes: |
examples:
+GitHub Skyline: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.svg
GitHub City: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.city.svg
-index: 26
+index: 27
supports:
- user
scopes: []
diff --git a/source/plugins/sponsorships/README.md b/source/plugins/sponsorships/README.md
index 5194d117..d23645a7 100644
--- a/source/plugins/sponsorships/README.md
+++ b/source/plugins/sponsorships/README.md
@@ -82,11 +82,11 @@ All product and company names are trademarksโข or registeredยฎ trademarks of th
```yaml
-name: ๐ GitHub sponsorships
+name: ๐ GitHub Sponsorships
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.sponsorships.svg
- token: ${{ secrets.METRICS_TOKEN }}
+ token: ${{ secrets.METRICS_TOKEN_PERSONAL }}
base: ""
plugin_sponsorships: yes
diff --git a/source/plugins/sponsorships/examples.yml b/source/plugins/sponsorships/examples.yml
index d5a04ee6..51d88056 100644
--- a/source/plugins/sponsorships/examples.yml
+++ b/source/plugins/sponsorships/examples.yml
@@ -1,7 +1,7 @@
-- name: ๐ GitHub sponsorships
+- name: ๐ GitHub Sponsorships
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.sponsorships.svg
- token: ${{ secrets.METRICS_TOKEN }}
+ token: ${{ secrets.METRICS_TOKEN_PERSONAL }}
base: ""
plugin_sponsorships: yes
diff --git a/source/plugins/sponsorships/metadata.yml b/source/plugins/sponsorships/metadata.yml
index 2ccd6d2c..82ea27f4 100644
--- a/source/plugins/sponsorships/metadata.yml
+++ b/source/plugins/sponsorships/metadata.yml
@@ -4,6 +4,7 @@ description: |
This plugin displays sponsorships funded through [GitHub sponsors](https://github.com/sponsors/).
examples:
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.sponsorships.svg
+index: 12
supports:
- user
- organization
diff --git a/tests/cases/sponsorships.plugin.yml b/tests/cases/sponsorships.plugin.yml
index 5dc5ff73..094f82e1 100644
--- a/tests/cases/sponsorships.plugin.yml
+++ b/tests/cases/sponsorships.plugin.yml
@@ -1,4 +1,4 @@
-- name: ๐ GitHub Sponsorships - ๐ GitHub sponsorships
+- name: ๐ GitHub Sponsorships - ๐ GitHub Sponsorships
uses: lowlighter/metrics@latest
with:
token: MOCKED_TOKEN
|