Cron #16932
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cron | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Set up bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: | | |
make pre-build | |
bun install | |
- name: Populate the latest data | |
run: make generate | |
env: | |
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
- name: Sync data to the blob store | |
run: bun sync up | |
env: | |
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} | |
- name: Trigger deployment | |
uses: joelwmale/webhook-action@master | |
with: | |
url: ${{ secrets.DEPLOY_HOOK_URL }} |