From 885a6d6f1d7b88787c650e0eb5e63dead44ad072 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 30 Dec 2021 16:36:53 -0500 Subject: [PATCH 1/2] chore(website): added cron job to update sponsors data daily --- .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 000000000000..e90bf4f11e73 --- /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: 'Update sponsors data' From fa794d4f050a049cbbea17673fb279b02b6bb9e7 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 29 Jan 2022 11:20:17 -0500 Subject: [PATCH 2/2] Update .github/workflows/update-sponsors.yml --- .github/workflows/update-sponsors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-sponsors.yml b/.github/workflows/update-sponsors.yml index e90bf4f11e73..4dcc8aeb8bf2 100644 --- a/.github/workflows/update-sponsors.yml +++ b/.github/workflows/update-sponsors.yml @@ -16,4 +16,4 @@ jobs: command: generate-sponsors - uses: EndBug/add-and-commit@v7 with: - message: 'Update sponsors data' + message: 'chore: update sponsors data'