Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:construction_worker: Combined GH action to credit contributors

Alicia Sykesa32bbeb96cbe
diff --git a/.github/workflows/generate-contributors.yml b/.github/workflows/generate-contributors.yml
deleted file mode 100644
index 02fe2e6d..00000000
--- a/.github/workflows/generate-contributors.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# Generates an image showing profile picture of everyone who'se contributed to Dashy
-# Which is embeded in the Readme Credits section, as they deserve some recognition
-name: Contributors
-on:
- schedule:
- - cron: '0 1 * * 0' # At 01:00 on Sunday.
- push:
- branches:
- - master
-jobs:
- contributors:
- runs-on: ubuntu-latest
- steps:
- - uses: bubkoo/contributors-list@v1
- with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- svgPath: docs/assets/CONTRIBUTORS.svg
diff --git a/.github/workflows/generate-credits.yml b/.github/workflows/generate-credits.yml
new file mode 100644
index 00000000..821ba113
--- /dev/null
+++ b/.github/workflows/generate-credits.yml
@@ -0,0 +1,40 @@
+# Inserts list of contributors and community members into ./docs/credits.md
+# Also generates an SVG showing all contributors, which is embedded into readme
+name: Contributors
+on:
+ workflow_dispatch: # Manual dispatch
+ schedule:
+ - cron: '0 1 * * 0' # At 01:00 on Sunday.
+jobs:
+ # Job #1 - Update the Credits page
+ insert-credits:
+ runs-on: ubuntu-latest
+ name: Inserts contributors into credits.md
+ steps:
+ - name: Contribute List
+ uses: akhilmhdh/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
+ with:
+ image_size: 80
+ readme_path: docs/credits.md
+ columns_per_row: 6
+ commit_message: ':yellow_heart: Updates contributors list'
+ committer_username: liss-bot
+ committer_email: [email protected]
+ # Job #2 - Generate an embedded SVG asset, showing all contributors
+ generate-contributors:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: bubkoo/contributors-list@v1
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ svgPath: docs/assets/CONTRIBUTORS.svg
+ affiliation: all
+ includeBots: false
+ excludeUsers: BeginCI snyk-bot
+ avatarSize: 96
+ userNameHeight: 20
+ svgWidth: 830
+ commitMessage: ':blue_heart: Updates contributor SVG'
+
diff --git a/.github/workflows/insert-credits.yml b/.github/workflows/insert-credits.yml
deleted file mode 100644
index 9d3976bd..00000000
--- a/.github/workflows/insert-credits.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-# Generates and inserts a dynamic table of contributors,
-# sponsors, bots and helpful community members into ./docs/credits.md
-name: Insert Credits
-on: [push, pull_request]
-jobs:
- contrib-readme-job:
- runs-on: ubuntu-latest
- name: Inserts contributors into credits.md
- steps:
- - name: Contribute List
- uses: akhilmhdh/[email protected]
- env:
- GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
- with:
- image_size: 80
- readme_path: docs/credits.md
- columns_per_row: 6
- commit_message: ':yellow_heart: Updates contributors list'
- committer_username: liss-bot
- committer_email: [email protected]
diff --git a/docs/credits.md b/docs/credits.md
index 847071de..94b45511 100644
--- a/docs/credits.md
+++ b/docs/credits.md
@@ -14,7 +14,6 @@
</table>
<!-- readme: sponsors -end -->
-<!-- sponsors --><!-- sponsors -->
## Contributors
<!-- readme: contributors -start -->
<table>
@@ -100,7 +99,7 @@
<!-- readme: EVOTk,shadowking001,turnrye,Robert-Ernst,MilesTEG1,Niklashere -end -->
## Bots
-<!-- readme: liss-bot,bots -start -->
+<!-- readme: liss-bot,snyk-bot,bots -start -->
<table>
<tr>
<td align="center">
@@ -118,7 +117,7 @@
</a>
</td></tr>
</table>
-<!-- readme: liss-bot,bots -end -->
+<!-- readme: liss-bot,snyk-bot,bots -end -->
## Dependencies πŸ”—