You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pull_request.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,8 @@ jobs:
118
118
container:
119
119
image: ubuntu:24.04
120
120
steps:
121
+
- name: Install git
122
+
run: apt-get update && apt-get -y install git
121
123
- name: Checkout repository
122
124
uses: actions/checkout@v4
123
125
- name: Prepare the action
@@ -135,7 +137,7 @@ jobs:
135
137
- name: Install libarchive
136
138
run: CC=clang swiftly run ./scripts/install-libarchive.sh
137
139
- name: Generate Swiftly CLI Reference and Check for Differences
138
-
run: swift package plugin --allow-writing-to-package-directory generate-docs-reference && bash -c 'echo "PWD is $(pwd)"' && bash -c 'git config --global --add safe.directory $(pwd)' && git diff Documentation/SwiftlyDocs.docc/swiftly-cli-reference.md || (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)
140
+
run: swift package plugin --allow-writing-to-package-directory generate-docs-reference && bash -c 'git config --global --add safe.directory $(pwd)' && git diff Documentation/SwiftlyDocs.docc/swiftly-cli-reference.md || (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)
139
141
- name: Generate Documentation Set
140
142
run: swift package --allow-writing-to-directory .build/docs generate-documentation --target SwiftlyDocs --output-path .build/docs
0 commit comments