Merge pull request #250 from Nick2bad4u/dependabot/github_actions/git… #261
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 xml sitemap | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
sitemap_job: | |
runs-on: ubuntu-latest | |
name: Generate a sitemap | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
github.com:443 | |
- name: Checkout the repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Generate the sitemap | |
id: sitemap | |
uses: cicirello/generate-sitemap@eb8db82126ee30619883c8c43e8c49ec14ebd6dc # v1.10.1 | |
with: | |
base-url-path: https://github.typpi.online | |
- name: Output stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemap.outputs.url-count }}" | |
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" |