-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1009 Bytes
/
update_readme.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
name: update_readme
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone repo
run: git clone https://github.com/neelabalan/GistOfGists.git
- name: Setup Python Environment
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Requirements
run: pip install -r GistOfGists/requirements.txt
- name: Execute Python script
run: |
python GistOfGists/gistofgists.py ${{ secrets.USERNAME }}
- name: delete the gistofgists repo
run: rm -rf GistOfGists/
- name: setup git config
run: |
git config user.name ${{ secrets.USERNAME }}
git config user.email ${{ secrets.EMAIL }}
- name: commit changes
run: |
git pull
git add -A
git commit -m "updated README" || echo "No changes to commit"
git push