name: update-readme

on:
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: checkout-code
        uses: actions/checkout@main
      - name: update-readme
        uses: JamesIves/github-sponsors-readme-action@v1.4.0
        with:
          token: ${{ secrets.PAT }}
          file: 'README.md'
      - name: deploy-readme
        uses: JamesIves/github-pages-deploy-action@v4.6.1
        with:
          branch: master
          folder: '.'
