Skip to content

Sync with database

Sync with database #3

Workflow file for this run

on:
# cron job per day
# schedule:
# - cron: "0 0 * * *"
# manual trigger
workflow_dispatch:
name: Sync with database
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Run script
run:
node ./sync.mjs
- name: Send PR
id: create_pull_request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Sync with database"
title: "Sync with database"
body: "Sync with database"
branch: "sync"
base: "main"
labels: "sync"
draft: false
branch-suffix: timestamp