Skip to content

Commit

Permalink
Create get-members GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Sep 19, 2024
1 parent 10562d9 commit 02f80a1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/get-members.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update list of members

on:
schedule:
- cron: '0 0 * * *'
pull_request:
branches:
- master

jobs:
get-members:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2
- run: composer install
working-directory: ./.github/workflows/get-members
- run: composer run get-members
working-directory: ./.github/workflows/get-members
env:
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
- name: Commit and push changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add _data/members.json
git commit -m "Update list of members"
git push

0 comments on commit 02f80a1

Please sign in to comment.