Skip to content

Commit 8b15082

Browse files
author
Luca Pisani
committed
Fix tar command in build workflows to handle file changes
- Add --ignore-failed-read to tar commands - Prevents 'file changed as we read it' errors in CI
1 parent f934e3a commit 8b15082

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-rpm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
echo "VERSION=$VERSION" >> $GITHUB_ENV
2020
2121
- name: Create source tarball
22-
run: tar -czf notes-${VERSION}.tar.gz --exclude=.git --exclude=.github .
22+
run: tar -czf notes-${VERSION}.tar.gz --exclude=.git --exclude=.github --ignore-failed-read .
2323

2424
- name: Build RPM
2525
run: |

.github/workflows/build-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "VERSION=$VERSION" >> $GITHUB_ENV
2121
- name: Create source tarball
2222
run: |
23-
tar -czf notes-${VERSION}.tar.gz --exclude=.git --exclude=.github .
23+
tar -czf notes-${VERSION}.tar.gz --exclude=.git --exclude=.github --ignore-failed-read .
2424
- name: Build RPM
2525
run: |
2626
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

0 commit comments

Comments
 (0)