Skip to content

Commit f9d0594

Browse files
committed
Pre-install git so that the checkout clones the repo instead of using REST to fetch it
1 parent 5d6764d commit f9d0594

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ jobs:
118118
container:
119119
image: ubuntu:24.04
120120
steps:
121+
- name: Install git
122+
run: apt-get update && apt-get -y install git
121123
- name: Checkout repository
122124
uses: actions/checkout@v4
123125
- name: Prepare the action
@@ -135,7 +137,7 @@ jobs:
135137
- name: Install libarchive
136138
run: CC=clang swiftly run ./scripts/install-libarchive.sh
137139
- 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)
139141
- name: Generate Documentation Set
140142
run: swift package --allow-writing-to-directory .build/docs generate-documentation --target SwiftlyDocs --output-path .build/docs
141143
- name: Upload Documentation Artifacts

0 commit comments

Comments
 (0)