-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 932 Bytes
/
Copy pathcron.yml
File metadata and controls
38 lines (31 loc) · 932 Bytes
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
name: Scrape kingsleague
env:
MONGODB_HOST: ${{secrets.MONGODB_HOST}}
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}}
MONGODB_USERNAME: ${{secrets.MONGODB_USERNAME}}
on:
workflow_dispatch:
schedule:
- cron: "0 23 * * 0"
jobs:
build:
runs-on: ubuntu-latest
environment: a
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Envioroment Variable
uses: CallePuzzle/envvar-to-dotenv-action@v1.1.5
with:
variableNames: MONGODB_HOST,MONGODB_PASSWORD,MONGODB_USERNAME
- run: |
npm install
node index.js
git config user.name anon-bot
git add -A
git commit -m "[BOT] - database updated" || echo "No changes to commit"
git push origin main || echo "No changes to commit"