Skip to content

update

update #45622

Workflow file for this run

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