Skip to content

Commit 28f210d

Browse files
committedFeb 26, 2025
ci: tell git the workspace is safe
Otherwise the deployment fails with ``` ERROR - Failed to deploy to GitHub with error: detected dubious ownership in repository at '/__w/docs/docs' To add an exception for this directory, call: git config --global --add safe.directory /__w/docs/docs ``` Signed-off-by: Davide Cavalca <[email protected]>
1 parent 25916e0 commit 28f210d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎.github/workflows/pages.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
run: |
2424
git config --global user.name github-actions[bot]
2525
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
26+
# This is needed for the deployment to work
27+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
2628
- name: Build
2729
if: github.event_name == 'pull_request'
2830
run: mkdocs build

0 commit comments

Comments
 (0)
Please sign in to comment.