PaiGram_Resources/.github/workflows/python.yml

41 lines
963 B
YAML
Raw Normal View History

2023-02-15 07:59:11 +00:00
name: Fetch Remote Files
on:
push:
branches:
- 'main'
workflow_dispatch: ~
jobs:
2023-02-15 08:18:33 +00:00
Fetch-Remote-Files:
2023-02-15 07:59:11 +00:00
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: |
2023-02-15 08:18:33 +00:00
export FILE_PATH="${{ vars.FILE_PATH }}"
2023-02-15 07:59:11 +00:00
python main.py
2023-02-16 06:58:47 +00:00
cp calendar.json Resources/calendar.json
2023-02-15 07:59:11 +00:00
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
new_branch: 'remote'
tag_push: '--force'
message: ':sparkles: Fetch Remote Files'
add: |
'Resources'