Skip to content

Update DB

Update DB #43

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Update DB
on:
schedule:
- cron: '30 15 * * 1' # Every Monday at 23:30 PM UTC+8
workflow_dispatch:
permissions: write-all
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Prepare VNDB data
run: bash ./assets/input/fetch_VNDB.sh
- name: Prepare Bangumi data
run: bash ./assets/input/fetch_Bangumi.sh
- name: Restore dependencies
run: dotnet restore
- name: Build and Run
run: dotnet run
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update data" -a || true
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}