Skip to content

generate-taginfo

generate-taginfo #609

name: generate-taginfo
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9.16'
- name: setup requests
run: pip install requests
- name: execute py script
run: python generate-taginfo.py
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
if [[ `git status --porcelain` ]]; then
git commit -a -m "Update taginfo.json"
git push
else
echo "taginfo.json is up to date, nothing to push"
fi