Skip to content

Commit 2910cd7

Browse files
committed
[skip ci] only grab first line incase an extra line exists
1 parent a345548 commit 2910cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/version/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
RELEASE_TAG: ${{ github.event.release.tag_name }}
2929
run: |
3030
# get the Build Bumber & version from git
31-
VERSION="$(cat VERSION | egrep -o '[0-9.]+')"
31+
VERSION="$(head -1 VERSION | egrep -o '[0-9.]+')"
3232
BUILD_NUMBER="$(git rev-list HEAD --count)"
3333
# Gets the release tag from github if it exists (Github Actions)
3434
# Assumes tags start with V

0 commit comments

Comments
 (0)