From 10e25f872c6fc7c400e640254d2eabe1f7c1f7fd Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Thu, 10 Oct 2024 08:57:12 +0200 Subject: [PATCH] Fix Sponsors GitHub Action --- .github/workflows/sponsors.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index ff920a1c0..1f837e7cd 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -1,15 +1,13 @@ name: Sponsors on: - push: - branches: [ '**' ] pull_request: branches: [ '**' ] schedule: - - '0 0 15 * *' + - cron: '0 0 15 * *' jobs: - tests: + sponsors: name: Update readme runs-on: ubuntu-latest @@ -17,6 +15,8 @@ jobs: steps: - name: Checkout the code uses: actions/checkout@v4 + with: + ref: master - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -44,11 +44,17 @@ jobs: max_attempts: 3 command: composer update --prefer-dist --no-progress --prefer-stable - - name: Run test suite + - name: Update sponsors on readme.md run: composer sponsors - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: + branch: update-sponsors + commit-message: Update sponsors + title: Update sponsors + body: Monthly automated sponsors update + assignees: kylekatarnls + reviewers: kylekatarnls add-paths: | readme.md