From 02f80a15a0de3869efb6b0f63d23c702aa60bdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= <1150563+jbelien@users.noreply.github.com> Date: Thu, 19 Sep 2024 21:46:12 +0200 Subject: [PATCH] Create get-members GitHub Actions workflow --- .github/workflows/get-members.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/get-members.yml diff --git a/.github/workflows/get-members.yml b/.github/workflows/get-members.yml new file mode 100644 index 0000000..57f3c28 --- /dev/null +++ b/.github/workflows/get-members.yml @@ -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