.github/workflows/credits.yml
50 lines · 1822 bytes
1# Inserts list of contributors and community members into ./docs/credits.md
2# Also generates an SVG showing all contributors, which is embedded into readme
3name: 📊 Generate Contributor Credits
4on:
5 workflow_dispatch: # Manual dispatch
6 schedule:
7 - cron: '0 5 * * 6' # Every Saturday morning.
8jobs:
9 # Job #1 - Generate an embedded SVG asset, showing all contributors
10 generate-contributors:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: bubkoo/contributors-list@v1
14 with:
15 GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
16 svgPath: .github/assets/CONTRIBUTORS.svg
17 affiliation: all
18 includeBots: false
19 excludeUsers: snyk-bot
20 avatarSize: 96
21 userNameHeight: 20
22 svgWidth: 830
23 commitMessage: 'Updates contributor SVG'
24 # Job #2 - Inserts sponsors into credits page
25 insert-sponsors:
26 runs-on: ubuntu-latest
27 steps:
28 - name: Checkout 🛎️
29 uses: actions/checkout@v2
30 - name: Generate Sponsors in Credits 💖
31 uses: JamesIves/github-sponsors-readme-action@1.0.5
32 with:
33 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
34 file: '.github/CREDITS.md'
35 # Job #3 - Inserts contributors into credits page
36 insert-credits:
37 runs-on: ubuntu-latest
38 name: Inserts contributors into credits.md
39 steps:
40 - name: Contribute List - Credits Page
41 uses: akhilmhdh/contributors-readme-action@v2.2
42 env:
43 GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
44 with:
45 image_size: 80
46 readme_path: .github/CREDITS.md
47 columns_per_row: 6
48 commit_message: 'Updates contributors list'
49 committer_username: liss-bot
50 committer_email: liss-bot@d0h.co