latest #628
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: latest | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
schedule: | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install PyYAML | |
- name: Run Script | |
run: python script.py | |
- name: Push Generated Files | |
run: | | |
git add .; | |
if git diff-index --quiet HEAD --; then | |
exit 0; | |
else | |
git config user.name github-actions; | |
git config user.email github-actions@github.com; | |
git commit -sam "🖨 Generate"; | |
git push | |
fi |