-
Notifications
You must be signed in to change notification settings - Fork 12
32 lines (26 loc) · 892 Bytes
/
Update.yaml
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
name: Update # Name of action
on:
workflow_dispatch: # allow manual run
schedule:
- cron: '0 3 * * *' # schedule run
jobs:
build:
runs-on: ubuntu-latest # Set build environment
steps: # Steps to update
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4 # Configure actions to setup python
with:
python-version: "3.x" # Set python version
- name: Install dependencies # Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Update # Upadate (Check, replace) repo
working-directory: ./script
run: |
python fetch.py --production
- name: Apply changes # Apply changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Update version to latest"