Skip to content

Commit cce5d97

Browse files
committed
fix permission Actions
1 parent 5664802 commit cce5d97

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/sitemap.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# .github/workflows/sitemap.yml
22
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
33

4+
# Autorise GitHub Actions
5+
permissions:
6+
contents: write
7+
48
name: Génération automatique du sitemap
59

610
on:
@@ -18,11 +22,16 @@ jobs:
1822
- name: Générer le sitemap
1923
uses: cicirello/[email protected]
2024
with:
21-
base-url: https://buonomolea.github.io/portfolio-lea-buonomo
22-
output: sitemap.xml
25+
# corrige les noms d’inputs pour cette version de l’action
26+
path-to-root: .
27+
base-url-path: /
28+
sitemap-format: xml
29+
exclude-paths: "/404.html"
2330

2431
- name: Commit & push du sitemap
2532
uses: stefanzweifel/[email protected]
2633
with:
34+
# Le GITHUB_TOKEN qui a maintenant les droits write
35+
token: ${{ secrets.GITHUB_TOKEN }}
2736
commit_message: "🗺️ Mise à jour automatique du sitemap"
2837
file_pattern: sitemap.xml

0 commit comments

Comments
 (0)