Skip to content

Commit bf73dba

Browse files
committed
Overcome git dubious repo error
1 parent 14957fa commit bf73dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Prepare the action
7070
run: ./scripts/prep-gh-action.sh && ./scripts/install-libarchive.sh
7171
- name: Generate Swiftly CLI Reference and Check for Differences
72-
run: swift package plugin --allow-writing-to-package-directory generate-docs-reference && git diff-index --quiet HEAD -- || (echo "The documentation hasn't been updated with the latest swiftly command-line reference. Please run 'swift package plugin generate-docs-reference' and commit/push the changes."; exit 1)
72+
run: swift package plugin --allow-writing-to-package-directory generate-docs-reference && git config --global --add safe.directory $(pwd) && git diff-index --quiet HEAD -- || (echo "The documentation hasn't been updated with the latest swiftly command-line reference. Please run 'swift package plugin generate-docs-reference' and commit/push the changes."; exit 1)
7373
- name: Generate Documentation Set
7474
run: swift package --allow-writing-to-directory .build/docs generate-documentation --target SwiftlyDocs --output-path .build/docs
7575
- name: Upload Documentation Artifacts

0 commit comments

Comments
 (0)