Skip to content

Commit a0e8af6

Browse files
committed
Remove files to allow copy when targets are identical
Fixes: ``` cp: LICENSE and /Users/ec2-user/actions-runner/_work/amalthea/amalthea/LICENSE are identical (not copied). Error: Process completed with exit code 1. ``` But do we even need to copy?
1 parent 776f792 commit a0e8af6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release-linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ jobs:
4747
4848
# Compress the kernel to an archive
4949
ARCHIVE="$GITHUB_WORKSPACE/ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-x64.zip"
50-
cp -f "$GITHUB_WORKSPACE/LICENSE" LICENSE
51-
cp -f "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
50+
rm -f LICENSE NOTICE
51+
cp "$GITHUB_WORKSPACE/LICENSE" LICENSE
52+
cp "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
5253
zip -Xry $ARCHIVE ark LICENSE NOTICE
5354
5455
popd

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ jobs:
260260
261261
# Compress and bundle licenses
262262
ARCHIVE="$GITHUB_WORKSPACE/ark-${{ needs.get_version.outputs.ARK_VERSION }}${{ env.DEBUG_FLAG }}-darwin-universal.zip"
263-
cp -f "$GITHUB_WORKSPACE/LICENSE" LICENSE
264-
cp -f "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
263+
rm -f LICENSE NOTICE
264+
cp "$GITHUB_WORKSPACE/LICENSE" LICENSE
265+
cp "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
265266
zip -Xry $ARCHIVE ark LICENSE NOTICE
266267
267268
- name: Upload macOS release artifact (universal)

0 commit comments

Comments
 (0)