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