Skip to content

Commit

Permalink
Ensure that git is not in dirty state after upx download
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Feb 12, 2022
1 parent c4754a1 commit 5136b12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
- name: Install upx 3.96
run: |
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar -xf upx-3.96-amd64_linux.tar.xz
mv ./upx-3.96-amd64_linux/upx /usr/local/bin/upx
# --strip-components=number - Strip given number of leading components from file names before extraction.
# and extract only ./upx-3.96-amd64_linux/upx file
tar --strip-components 1 -xf upx-3.96-amd64_linux.tar.xz ./upx-3.96-amd64_linux/upx
mv ./upx /usr/local/bin/upx
upx -V
- name: Docker Login
uses: docker/login-action@v1
Expand Down

0 comments on commit 5136b12

Please sign in to comment.