Skip to content

Commit

Permalink
chore(ci): add sponsors action
Browse files Browse the repository at this point in the history
  • Loading branch information
petretiandrea committed Mar 6, 2024
1 parent c83c20f commit 1878d26
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sponsors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Generate Sponsors README
on:
workflow_dispatch:
schedule:
- cron: 30 15 * * 0-6

jobs:
deploy:
runs-on: ubuntu-latest
environment: sponsors
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: 'README.md'
minimum: 40
marker: gold

- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: 'README.md'
maximum: 39
marker: 'silver'

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: '.'
commit-message: "chore(docs): [skip ci] update sponsors"
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ The core of the integration is provied by [plugp100](https://github.com/petretia

Please help me to complete the [new roadmap](https://github.com/petretiandrea/home-assistant-tapo-p100/discussions/655)

## Sponsors
### Gold Sponsors

<!-- gold -->
<!-- gold -->

### Silver Sponsors

<!-- silver -->
<!-- silver -->

## Warnings

### Tapo protocol
Expand Down

0 comments on commit 1878d26

Please sign in to comment.