50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
# Inserts list of contributors and community members into ./docs/credits.md
|
|
# Also generates an SVG showing all contributors, which is embedded into readme
|
|
name: 📊 Generate Contributor Credits
|
|
on:
|
|
workflow_dispatch: # Manual dispatch
|
|
schedule:
|
|
- cron: '0 5 * * 6' # Every Saturday morning.
|
|
jobs:
|
|
# Job #1 - Generate an embedded SVG asset, showing all contributors
|
|
generate-contributors:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: bubkoo/contributors-list@v1
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
svgPath: .github/assets/CONTRIBUTORS.svg
|
|
affiliation: all
|
|
includeBots: false
|
|
excludeUsers: snyk-bot
|
|
avatarSize: 96
|
|
userNameHeight: 20
|
|
svgWidth: 830
|
|
commitMessage: 'Updates contributor SVG'
|
|
# Job #2 - Inserts sponsors into credits page
|
|
insert-sponsors:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout 🛎️
|
|
uses: actions/checkout@v2
|
|
- name: Generate Sponsors in Credits 💖
|
|
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
|
with:
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
file: '.github/CREDITS.md'
|
|
# Job #3 - Inserts contributors into credits page
|
|
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 || secrets.GITHUB_TOKEN }}
|
|
with:
|
|
image_size: 80
|
|
readme_path: .github/CREDITS.md
|
|
columns_per_row: 6
|
|
commit_message: 'Updates contributors list'
|
|
committer_username: liss-bot
|
|
committer_email: liss-bot@d0h.co
|