Skip to content

Updated Whatsapp Phone Number and Google Tag Manager #8

Updated Whatsapp Phone Number and Google Tag Manager

Updated Whatsapp Phone Number and Google Tag Manager #8

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)