Skip to content

update

update #1789

Workflow file for this run

name: update
on:
schedule:
- cron: '30 5 * * *' #每日更新
watch:
types: [started]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest #运行环境
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 'Git set'
run: |
git init
git pull
- name: 'Setup nodejs'
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: 'Install requirements'
run: |
npm install
- name: 'Working'
run: node program/fetchAll.js
- name: 'Create Files'
continue-on-error: True
run: node program/svg.js
- name: Commit files
run: |
git config --local user.email "dr_hamilton@foxmail.com"
git config --local user.name "Ravello-H"
git add -A
git commit -m "`date '+%Y-%m-%d %H:%M:%S'`" || exit #动态提交信息
git status
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}