personal-security-checklist/.github/workflows/insert-contributors.yml

38 lines
1.3 KiB
YAML
Raw Normal View History

2024-02-10 18:07:07 -05:00
# Inserts list of community members into ./README.md
name: 💓 Inserts Contributors & Sponsors
on:
workflow_dispatch: # Manual dispatch
schedule:
2024-02-10 18:07:07 -05:00
- cron: '45 1 * * 0' # At 01:45 on Sunday.
jobs:
2024-02-10 18:07:07 -05:00
# Job #1 - Fetches sponsors and inserts table into readme
insert-sponsors:
runs-on: ubuntu-latest
2024-02-10 18:07:07 -05:00
name: Inserts Sponsors 💓
steps:
2024-02-10 18:07:07 -05:00
- name: Checkout
uses: actions/checkout@v2
2024-02-10 18:07:07 -05:00
- name: Updates readme with sponsors
uses: JamesIves/github-sponsors-readme-action@1.0.5
with:
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2024-02-10 18:07:07 -05:00
file: .github/README.md
2024-02-10 18:07:07 -05:00
# Job #2 - Fetches contributors and inserts table into readme
insert-contributors:
runs-on: ubuntu-latest
2024-02-10 18:07:07 -05:00
name: Inserts Contributors 💓
steps:
2024-02-10 18:07:07 -05:00
- name: Updates readme with contributors
uses: akhilmhdh/contributors-readme-action@v2.3.4
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2024-02-10 18:07:07 -05:00
with:
image_size: 80
readme_path: .github/README.md
columns_per_row: 6
commit_message: 'docs: Updates contributors list'
committer_username: liss-bot
committer_email: liss-bot@d0h.co