-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.22 KB
/
update.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
name: update
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: "*/30 * * * *" # every 30 mins
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 🍽️ Get working copy
uses: actions/checkout@master
with:
fetch-depth: 1
- name: 🐍 Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: 💿 Install Jinja2 & requests
run: pip install Jinja2 requests opencv-python
- name: 🍳 Update README
run: |
cd ${GITHUB_WORKSPACE}/profile/src/
python update.py
- name: 🚀 Deploy
run: |
git config user.name "TSD Github Actions"
git config user.email "[email protected]"
git add .
git commit -am "feat(auto generate): Updated content"
git push --all -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git