π Update the GitHub Sponsors page and commit #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow updates the GitHub Sponsors list in the content/funding/donate/github-sponsors.md file. | |
| name: π Update the GitHub Sponsors page and commit | |
| on: | |
| workflow_dispatch: # Allows you to run this workflow manually from the Actions tab | |
| schedule: | |
| - cron: '0 0,12 * * *' # At midnight & noon UTC | |
| permissions: | |
| contents: write | |
| jobs: | |
| scrape: | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'qgis' | |
| steps: | |
| - name: 'ποΈ Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'π Generate Sponsors' | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| file: 'content/funding/donate/github-sponsors.md' | |
| organization: true | |
| active-only: false | |
| template: | | |
| <a class="rich-list third mr-2 mb-2" href="https://github.com/{{{ login }}}" target="_blank"> | |
| <div class="listcont external-link"> | |
| {{{ name }}} - {{{ login }}} | |
| </div> | |
| </a> | |
| - name: 'βοΈ Commit' | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: 'GitHub Sponsors updated and committed via a GitHub Action.' |