diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml new file mode 100644 index 00000000..fb744be2 --- /dev/null +++ b/.github/workflows/sponsors.yml @@ -0,0 +1,39 @@ +name: Generate Sponsors list +on: + workflow_dispatch: + schedule: + - cron: '31 6 * * *' +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v5 + with: + # Required to allow push to master without the checks/PR + token: ${{ secrets.GH_PUSH_TOKEN }} + + - name: Generate Sponsors 💖 + uses: JamesIves/github-sponsors-readme-action@1a120c92d5067dafeaedb33916301fd61338883d # v1.5.6 + with: + token: ${{ secrets.SOFIIA_SPONSORS_READ_TOKEN }} + file: 'README.md' + active-only: false + include-private: true + + - name: Commit changes + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add README.md + + # Check if there are any staged changes + if git diff --cached --quiet; then + echo "No changes to commit." + exit 0 + fi + + git commit -m "Update list of sponsors" + git push origin master diff --git a/README.md b/README.md index bbdf8959..b2c3b8dc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,11 @@ Download the website to the local directory (including all css, images, js, etc. **Note:** by default dynamic websites (where content is loaded by js) may be saved not correctly because `website-scraper` doesn't execute js, it only parses http responses for html and css files. If you need to download a dynamic website take a look at [website-scraper-puppeteer](https://github.com/website-scraper/website-scraper-puppeteer). -This module is an Open Source Software maintained by one developer in free time. If you want to thank the author of this module you can use [GitHub Sponsors](https://github.com/sponsors/s0ph1e) or [Patreon](https://www.patreon.com/s0ph1e). +## Sponsors +Maintenance of this project is made possible by all the [contributors](https://github.com/website-scraper/node-website-scraper/graphs/contributors) and [sponsors](https://github.com/sponsors/s0ph1e). +If you'd like to sponsor this project and have your avatar or company logo appear below [click here](https://github.com/sponsors/s0ph1e). 💖 + + ## Requirements * nodejs version >= 20.18.1