Skip to content

sitemap.yml: Add write permissions #2

sitemap.yml: Add write permissions

sitemap.yml: Add write permissions #2

Workflow file for this run

name: Generate XML sitemap
on: [push, workflow_dispatch]
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap
permissions:
contents: write
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://idfban.github.io/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "Automated sitemap update"
body: >
Sitemap updated by the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
GitHub action. Automated pull-request generated by the
[create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.