-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.07 KB
/
python.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: Fetch Remote Files
on:
push:
branches:
- 'main'
workflow_dispatch: ~
jobs:
Fetch-Remote-Files:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install -r requirements.txt
- name: Fetch Remote Files
run: |
export FILE_PATH="${{ vars.FILE_PATH }}"
python main.py
python achievements.py
python roles_material.py
cp src/calendar.json Resources/calendar.json
cp src/birthday.json Resources/birthday.json
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
push: 'origin remote --force'
new_branch: 'remote'
message: ':sparkles: Fetch Remote Files'
add: |
'Resources'