update #45582
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: 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 |