Skip to content

Commit 81803d7

Browse files
committed
ci: write release tarball to /tmp to avoid tar self-reference
GHA failed with 'tar: ./callpanel-17.0.0.tgz: file changed as we read it' because the tarball was being written to the same directory tar was archiving. Move the output to /tmp/. Signed-off-by: Eric Osterberg <ejosterberg@gmail.com>
1 parent 82279fe commit 81803d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
run: |
3030
# FreePBX expects the tarball to extract into a directory named
3131
# after the rawname. Use --transform so the archive root is "callpanel/".
32-
TARBALL="callpanel-${{ steps.ver.outputs.version }}.tgz"
32+
# Write to /tmp/ (NOT the working dir — tar would otherwise see
33+
# its own output file change mid-archive and abort with
34+
# "file changed as we read it").
35+
TARBALL="/tmp/callpanel-${{ steps.ver.outputs.version }}.tgz"
3336
tar --exclude='./.git' \
3437
--exclude='./.github' \
3538
--exclude='./specs' \

0 commit comments

Comments
 (0)