:octocat: Adds an action to fetch, generate and insert Dashy's sponsors into Credits
This commit is contained in:
23
.github/workflows/insert-sponsors.yml
vendored
Normal file
23
.github/workflows/insert-sponsors.yml
vendored
Normal 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'
|
||||
Reference in New Issue
Block a user