diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 9937e8ac2..4704423bd 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -99,6 +99,13 @@ jobs: npm ci env: NPM_TOKEN: ${{ secrets.GH_TOKEN_SUPPLYALLY_BOT }} + - name: Get Latest Binary Version # Binary Version will be x.x.x based on the latest tag + id: latestBinaryVersion + run: | + # Release tag finds the lastest tag in the tree branch - i.e. prod-x.x.x + RELEASE_TAG=$(echo $(git describe --tags --abbrev=0)) + # Using param substitution, we output x.x.x instead + echo "::set-output name=version::${RELEASE_TAG#*-}" - name: Echo Version Details run: | echo Build number is $GITHUB_RUN_NUMBER