Skip to content

Commit

Permalink
Merge pull request #3076 from briannesbitt/feature/sponsors-update-job
Browse files Browse the repository at this point in the history
Fix Sponsors GitHub Action
  • Loading branch information
kylekatarnls authored Oct 10, 2024
2 parents d859d9b + 170731c commit ba140fe
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
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

steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
ref: master

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -44,11 +42,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: job/update-sponsors
commit-message: Update sponsors
title: Update sponsors
body: Monthly automated sponsors update
assignees: kylekatarnls
reviewers: kylekatarnls
add-paths: |
readme.md

0 comments on commit ba140fe

Please sign in to comment.