:octocat: Adds an action to fetch, generate and insert Dashy's sponsors into Credits

This commit is contained in:
Alicia Sykes
2021-07-31 15:32:32 +01:00
parent b9fa5e9b9f
commit 626c298692
2 changed files with 65 additions and 0 deletions

23
.github/workflows/insert-sponsors.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Generates a list of sponsors, and inserts it into specified files
# where the `<!-- sponsors --><!-- sponsors -->` tag is
name: Inserts Current Sponsors in Readme
on:
workflow_dispatch
release:
types: [published]
jobs:
deploy:
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.PAT }}
file: 'README.md'
- name: Generate Sponsors in Credits 💖
uses: JamesIves/github-sponsors-readme-action@1.0.5
with:
token: ${{ secrets.PAT }}
file: 'docs/credits.md'