Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3e8c79

Browse files
committed
Added update of project version and build number.
1 parent 09d3261 commit e3e8c79

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ jobs:
111111
- name: Set version
112112
run: echo "UTPLSQL_VERSION=$(. .travis/get_project_version.sh)" >> $GITHUB_ENV
113113

114-
- name: Set version build no
114+
- name: Set version with build no
115+
run: echo UTPLSQL_BUILD_VERSION=$(sed -E "s/(v?[0-9]+\.)([0-9]+\.)([0-9]+)(-.*)?/\1\2\3\.${UTPLSQL_BUILD_NO}\4/" <<< "${UTPLSQL_VERSION}") >> $GITHUB_ENV
115116

116-
run: echo "UTPLSQL_BUILD_VERSION=$(. .travis/get_project_build_version.sh)" >> $GITHUB_ENV
117117
- name: Output Run numbers
118118
run: echo github.run_id is ${{ github.run_id }} github.run_number is ${{ github.run_number }} UTPLSQL_BUILD_NO is $UTPLSQL_BUILD_NO UTPLSQL_VERSION is $UTPLSQL_VERSION UTPLSQL_BUILD_VERSION is $UTPLSQL_BUILD_VERSION
119-
# - name: Update project version & build number
120-
# run: sh ${{ github.workspace }}/.travis/update_project_version.sh
119+
120+
- name: Update project version & build number
121+
run: sh ${{ github.workspace }}/.travis/update_project_version.sh
121122

122123
- name: Download latest utPLSQL release
123124
run: git clone --depth=1 --branch=main https://github.com/utPLSQL/utPLSQL.git $UTPLSQL_DIR

0 commit comments

Comments
 (0)