File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,20 +105,19 @@ jobs:
105105
106106 -
uses :
nelonoel/[email protected] 107107
108- - name : Set current branch name
109- run : echo "CURRENT_BRANCH=${BRANCH_NAME}" >> $GITHUB_ENV
110-
111- - name : Set build no
112- run : echo "UTPLSQL_BUILD_NO=$( expr ${{github.run_number}} + ${UTPLSQL_BUILD_NO_OFFSET} )" >> $GITHUB_ENV
113-
114- - name : Set version
115- run : echo "UTPLSQL_VERSION=$(. .travis/get_project_version.sh)" >> $GITHUB_ENV
116-
117- - name : Set version with build no
118- 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
119-
120- - name : Output Run numbers
121- 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
108+ - name : Set dynamic environment variables
109+ run : |
110+ echo "CURRENT_BRANCH=${BRANCH_NAME}" >> $GITHUB_ENV
111+ echo "UTPLSQL_BUILD_NO=$( expr ${{github.run_number}} + ${UTPLSQL_BUILD_NO_OFFSET} )" >> $GITHUB_ENV
112+ echo "UTPLSQL_VERSION=$(. .travis/get_project_version.sh)" >> $GITHUB_ENV
113+ 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
114+
115+ # - name: print variables
116+ # run: |
117+ # echo github.run_number is ${{ github.run_number }}
118+ # echo UTPLSQL_BUILD_NO is $UTPLSQL_BUILD_NO
119+ # echo UTPLSQL_VERSION is $UTPLSQL_VERSION
120+ # echo UTPLSQL_BUILD_VERSION is $UTPLSQL_BUILD_VERSION
122121
123122 - name : Update project version & build number
124123 run : .travis/update_project_version.sh
You can’t perform that action at this time.
0 commit comments