Create generate_index.yml #1
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 Index Files | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Run script | |
run: | | |
python generate_index.py # Runs your Python script | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: 'GitHub Actions' | |
author_email: 'actions@github.com' | |
message: 'Auto-update index.html files' |