Skip to content

Commit

Permalink
fix(ci): Workaround .git permissions error
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Feb 6, 2025
1 parent 7616f97 commit 2c7b2c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ runs:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
# Workaround "error: insufficient permission for adding an object to repository database .git/objects"
# https://github.com/terraform-docs/gh-actions/issues/50#issuecomment-1231314373
sudo chown runner:docker -R .git
git pull # In case we have multiple changelog updates
FILE_TO_COMMIT="$PACKAGE_NAME/CHANGELOG.md"
if ! git diff --quiet --exit-code $FILE_TO_COMMIT ; then
Expand Down

0 comments on commit 2c7b2c4

Please sign in to comment.