Skip to content

Commit 3e91c3e

Browse files
committed
Fix .git permissions
1 parent 6dc3113 commit 3e91c3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
output-format: markdown table
3333
git-push: false
3434

35+
- name: Fix .git permissions
36+
# Fix "error: insufficient permission for adding an object to repository database .git/objects"
37+
run: sudo chmod -R ugo+rwX .git
38+
3539
- name: Commit changes
3640
run: |
3741
git config user.name github-actions
3842
git config user.email github-actions@github.com
39-
sudo chmod -R ugo+rwX .git
4043
git add graph.png
4144
git add README.md
4245
git diff-index --quiet HEAD || git commit -m "Update docs"

0 commit comments

Comments
 (0)