Updated Locations, commented headers #9
This file contains hidden or 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 Sitemap | |
| on: | |
| push: | |
| paths: | |
| - 'TeyZee_Visa-main-7/html/**/*.html' | |
| - 'TeyZee_Visa-main-7/scripts/generate_sitemap.py' | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Generate sitemap | |
| run: | | |
| python TeyZee_Visa-main-7/scripts/generate_sitemap.py | |
| # - name: Commit sitemap | |
| # run: | | |
| # git config user.name "github-actions" | |
| # git config user.email "[email protected]" | |
| # git add TeyZee_Visa-main-7/sitemap.html | |
| # git commit -m "Update sitemap.html" || echo "No changes to commit" | |
| # git push | |
| - name: Commit and push if sitemap updated | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add TeyZee_Visa-main-7/sitemap.html | |
| git diff --cached --quiet || (git commit -m "Update sitemap.html via GitHub Actions" && git push) |