-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (41 loc) · 1.16 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: update
on:
schedule:
- cron: '30 * * * *'
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@v3
- 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 update.js
- name: Commit files
continue-on-error: True
run: |
git config --local user.email "[email protected]"
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 }}