From 41c647427b0cfd15bb027859a28c68c89506df93 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 29 Jan 2022 11:30:05 -0500 Subject: [PATCH] chore(website): added cron job to update sponsors data daily (#4372) --- .github/workflows/update-sponsors.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/update-sponsors.yml diff --git a/.github/workflows/update-sponsors.yml b/.github/workflows/update-sponsors.yml new file mode 100644 index 00000000000..4dcc8aeb8bf --- /dev/null +++ b/.github/workflows/update-sponsors.yml @@ -0,0 +1,19 @@ +name: Update Sponsors Data + +on: + branch: main + schedule: + - cron: "0 0 * * *" + +jobs: + build: + name: Commit if needed + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: Codecademy/run-on-yarn@v1 + with: + command: generate-sponsors + - uses: EndBug/add-and-commit@v7 + with: + message: 'chore: update sponsors data'