refresh config_files #608
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: refresh config_files | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 14 * * *" #runs at 12:30 UTC everyday | |
jobs: | |
refresh_config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content to github runner. | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 #install the python needed | |
- name: Install dependencies | |
run: | | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: execute py script | |
run: | | |
cat keys.txt | xargs -L 1 python main.py | |
python main.py full | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "refresh config files" | |
git push | |