Merge pull request #15290 from goulinkh/cla-vuln-fix #2
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 for static pages on ubuntu.com | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "templates/**" | |
| jobs: | |
| generate-sitemap: | |
| if: github.repository == 'canonical/ubuntu.com' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Call sitemap generation endpoint | |
| run: | | |
| curl --fail-with-body -X POST "https://ubuntu.com/sitemap_tree.xml" \ | |
| -H "Authorization: Bearer ${{ secrets.SITEMAP_SECRET }}" | |
| - name: Send message on failure | |
| if: failure() | |
| run: curl -X POST -F "workflow=${GITHUB_WORKFLOW}" -F "repo_name=${GITHUB_REPOSITORY}" -F "action_id=${GITHUB_RUN_ID}" ${{ secrets.BOT_URL }}?room=web--design |