Environment variable for release version run
This commit is contained in:
parent
7041a2c33f
commit
b8f661840a
2 changed files with 7 additions and 3 deletions
|
@ -133,7 +133,7 @@ jobs:
|
|||
- run:
|
||||
name: Run Version Script
|
||||
command: |
|
||||
sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
||||
sudo chmod +x resources/version.sh && GH_RELEASE_REQUEST=true ./resources/version.sh || true
|
||||
echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$BASH_ENV
|
||||
- run:
|
||||
name: Publish Release
|
||||
|
|
|
@ -11,7 +11,11 @@ fi
|
|||
|
||||
|
||||
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
||||
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
||||
if [[ $GH_RELEASE_REQUEST != "" ]]; then
|
||||
COMMIT_SINCE_STABLE=$(printf "%03d\n" $(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE"))
|
||||
else
|
||||
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
||||
fi
|
||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||
|
||||
# Set the version number for commits on main branch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue