Skip to content

Commit

Permalink
Update build_gh.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 authored May 28, 2024
1 parent d6f7763 commit 099c604
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Scripts/build_gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ set -x
if [[ "$(pwd)" == *"/Scripts" ]]; then
cd ..
fi
# get the Build Bumber & version from git
VERSION="$(cat VERSION)"
BUILD_NUMBER="$(git rev-list HEAD --count)"
# Gets the release tag from github if it exists (Github Actions)
# Assumes tags start with V
if [[ -v RELEASE_TAG ]] && [[ -n $RELEASE_TAG ]]; then
TAG="${RELEASE_TAG,,}"
VERSION="${TAG//"v"}"
fi
echo "BUILD_NUMBER=$BUILD_NUMBER" >> "$GITHUB_OUTPUT"
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"

DEBUG=""
if [[ $GITHUB_EVENT_NAME == 'pull_request' ]]; then
Expand Down

0 comments on commit 099c604

Please sign in to comment.