Skip to content

Commit 17578bb

Browse files
markhallenclaude
andcommitted
fix: write tar archive to /tmp to avoid 'file changed as we read it'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 34f831b commit 17578bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/create-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@ jobs:
128128
- name: Build and package application
129129
if: ${{ github.event.inputs.dry_run != 'true' }}
130130
run: |
131-
tar -czf slack-github-threads-v${{ steps.next_version.outputs.NEXT_VERSION }}.tar.gz \
131+
ARCHIVE="slack-github-threads-v${{ steps.next_version.outputs.NEXT_VERSION }}.tar.gz"
132+
tar -czf "/tmp/$ARCHIVE" \
132133
--exclude='.git*' \
133134
--exclude='test/' \
134135
--exclude='log/*.log' \
135136
--exclude='.env*' \
136137
--exclude='tmp/' \
137138
.
139+
mv "/tmp/$ARCHIVE" .
138140
139141
- name: Create GitHub Release
140142
if: ${{ github.event.inputs.dry_run != 'true' }}

0 commit comments

Comments
 (0)