Skip to content

Daily Update Frontend #649

Daily Update Frontend

Daily Update Frontend #649

name: Daily Update Frontend
on:
schedule:
- cron: "30 12 * * *"
jobs:
update-frontend-today-job:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Main Source
uses: actions/checkout@v3
with:
ref: main
- name: Checkout Public Branch
uses: actions/checkout@v3
with:
ref: public
path: public
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install hatch
run: python -m pip install -U pip hatch
- name: Run Commands
run: hatch run cli update-frontend-today
env:
MONGODB_URL: ${{ secrets.MONGODB_URL }}
DATABASE_NAME: ${{ vars.DATABASE_NAME }}
- name: Commit Changes
run: |
cd public
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "daily update $(date +%Y-%m-%d)"
git push origin public