generate-taginfo #601
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: 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 |