-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 995 Bytes
/
update-data.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
44
45
name: Update
on:
workflow_dispatch:
schedule:
- cron: '15 16 * * *'
- cron: '35 18-23 * * 3'
- cron: '35 0-12 * * 4'
- cron: '*/5 13-15 * * 4'
- cron: '35 0-12,18-23 11-31 12 *'
- cron: '*/5 13-15 11-31 12 *'
- cron: '35 0-12,18-23 1-6 1 *'
- cron: '*/5 13-15 1-6 1 *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "data"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Git Config
run: |
git config user.name woctezuma && git config user.email woctezuma@users.noreply.github.com
- name: Run Updater
run: |
./update.sh
env:
DISCORD_GIFT: ${{ secrets.DISCORD_GIFT }}
DISCORD_WRAPPING: ${{ secrets.DISCORD_WRAPPING }}