Generate Sponsors README #746
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
| name: Generate Sponsors README | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 30 15 * * 0-6 | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: (github.event_name == 'schedule' && github.repository == 'ChrisTitusTech/winutil') || (github.event_name != 'schedule') | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Generate Sponsors 💖 | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| file: 'README.md' | |
| - name: Create Pull Request 🚀 | |
| id: cpr | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.AUTO_MERGE }} | |
| commit-message: 'Update sponsors in README' | |
| title: 'chore: Update Sponsors README' | |
| body: 'Automated update of sponsors section' | |
| branch: sponsors-update | |
| delete-branch: true | |
| labels: | | |
| automated | |
| skip-changelog | |
| - name: Check outputs | |
| run: | | |
| echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
| echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |