Skip to content

Update Badges

Update Badges #1662

Workflow file for this run

name: Update Badges
on:
schedule:
- cron: "0 0 * * *"
jobs:
run_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pytest 3.7
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Download badges
run: |
python -m pip install requests
python utils/download_badges.py
echo ${{ github.ref }}
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "ci: Automated build push" -a | exit 0
- name: Push changes
if: github.ref == 'refs/heads/master'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SECRET_TOKEN }}
branch: ${{ github.ref }}