Skip to content

Commit

Permalink
Update tar command to exclude unwanted parent directories and "."
Browse files Browse the repository at this point in the history
  • Loading branch information
mesheets authored Jul 19, 2024
1 parent cd1ed26 commit 502daa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/brickOS-bibo_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:

# Before archiving, tar the host installation output to preserve file permission
# c.f. https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss
# To avoid including a "." or other unwanted directory, c.f. https://stackoverflow.com/a/39530409
- name: Tar the host installation snapshot to preserve file permissions
run: tar --verbose --create --file build/install.tar --transform='s,build/destdir/,,' build/destdir/
run: find build/destdir/ -printf "%P\n" | tar --verbose --create --file build/install.tar --no-recursion --directory=build/destdir/ --files-from=-

- name: Archive the host installation snapshot tar file
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 502daa1

Please sign in to comment.