Skip to content

동의대 api 제작 #850

동의대 api 제작

동의대 api 제작 #850

Workflow file for this run

name: 동의대 api 제작
on:
schedule:
- cron: '0 16 * * *'
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 16.x
- name: Install dependencies
run: yarn install
- name: Get api and json make
run: node index
- name: push json file
run: |
git config advice.addIgnoredFile false
git add *
git diff
git config --local user.email ${{secrets.EMAIL}}
git config --local user.name ${{secrets.NAME}}
git commit -m "Auto JSON update"
git push