2021-07-31 19:13:40 +02:00
|
|
|
# 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:
|
2021-08-12 23:31:54 +02:00
|
|
|
# Job #1 - Generate an embedded SVG asset, showing all contributors
|
2021-07-31 19:13:40 +02:00
|
|
|
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'
|
2021-08-19 21:11:01 +02:00
|
|
|
# Job #2 - Fetches sponsors and inserts into readme and credits page
|
|
|
|
insert-sponsors:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout 🛎️
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Generate Sponsors in Readme 💖
|
|
|
|
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: 'README.md'
|
|
|
|
- name: Generate Sponsors in Credits 💖
|
|
|
|
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: 'docs/credits.md'
|
|
|
|
# Job #3 - Update the Credits page
|
2021-08-12 23:31:54 +02:00
|
|
|
insert-credits:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Inserts contributors into credits.md
|
|
|
|
steps:
|
|
|
|
- name: Contribute List - Credits Page
|
|
|
|
uses: akhilmhdh/contributors-readme-action@v2.2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
image_size: 80
|
|
|
|
readme_path: docs/credits.md
|
|
|
|
columns_per_row: 6
|
|
|
|
commit_message: ':purple_heart: Updates contributors list'
|
|
|
|
committer_username: liss-bot
|
|
|
|
committer_email: liss-bot@d0h.co
|
|
|
|
- name: Sponsors List - Readme
|
|
|
|
uses: akhilmhdh/contributors-readme-action@v2.2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
image_size: 80
|
|
|
|
readme_path: README.md
|
|
|
|
columns_per_row: 6
|
|
|
|
commit_message: ':yellow_heart: Updates sponsors table'
|
|
|
|
committer_username: liss-bot
|
|
|
|
committer_email: liss-bot@d0h.co
|
|
|
|
|
2021-07-31 19:13:40 +02:00
|
|
|
|