Skip to content

Commit 4c69441

Browse files
committed
Skip readme and LICENSE
1 parent 74bf7fa commit 4c69441

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ runs:
2828
using: "composite"
2929
steps:
3030
- run: |
31-
VERSION=0.3.1
32-
ASSET_NAME=fetch-gh-release-binary_0.3.1_Linux_amd64.tar.gz
31+
VERSION=0.3.2
3332
BINARY_NAME=fetch-gh-release-binary
33+
ASSET_NAME=$BINARY_NAME_$VERSION_Linux_amd64.tar.gz
3434
3535
curl -LO https://github.com/charlieegan3/fetch-gh-release-binary/releases/download/$VERSION/$ASSET_NAME
3636
tar -zxf $ASSET_NAME

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ func main() {
138138
continue
139139
}
140140

141+
if item.Name() == "README.md" {
142+
continue
143+
}
144+
if item.Name() == "LICENSE" {
145+
continue
146+
}
147+
141148
if http.DetectContentType(byteSlice) == "application/octet-stream" {
142149
if *verbose {
143150
log.Printf("selected binary '%s' from tar", item.Name())

0 commit comments

Comments
 (0)