Skip to content

Commit dfafaf0

Browse files
committed
ci: Only create symbol-graphs dir if it doesn't exist
1 parent a988b90 commit dfafaf0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/compile-docs/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ runs:
4040
if: ${{ inputs.use-swiftpm == 'true' }} # Compare to constant to treat empty input as false
4141
run: |
4242
set -ex
43-
mkdir "$TARGET.doccarchive" && \
4443
swift package \
4544
--allow-writing-to-directory . \
4645
generate-documentation \

.github/actions/extract-symbol-graphs/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ runs:
2525
if: ${{ inputs.xcodebuild != 'true' }} # Compare to constant to treat empty input as false
2626
run: |
2727
set -eux
28-
mkdir symbol-graphs
28+
mkdir -p symbol-graphs
2929
swift build --target "$TARGET" \
3030
-Xswiftc -emit-symbol-graph \
3131
-Xswiftc -emit-symbol-graph-dir -Xswiftc symbol-graphs
3232
3333
# Locate relevant symbol graphs and copy them to the target-specific
3434
# output directory
35-
mkdir "$TARGET-symbol-graphs"
35+
mkdir -p "$TARGET-symbol-graphs"
3636
find symbol-graphs -name "$TARGET*.symbols.json" -exec cp {} $TARGET-symbol-graphs ';'
3737
shell: bash
3838
working-directory: ${{ inputs.working-directory }}
@@ -62,7 +62,7 @@ runs:
6262
6363
# Locate relevant symbol graphs and copy them to the target-specific
6464
# output directory
65-
mkdir "$TARGET-symbol-graphs"
65+
mkdir -p "$TARGET-symbol-graphs"
6666
find /tmp/data -name "$TARGET*.symbols.json" -exec cp {} $TARGET-symbol-graphs ';'
6767
shell: bash
6868
working-directory: ${{ inputs.working-directory }}

0 commit comments

Comments
 (0)