diff --git a/.github/workflows/deploy-preprod.yml b/.github/workflows/deploy-preprod.yml index 3015a9ad27..0df8d20405 100644 --- a/.github/workflows/deploy-preprod.yml +++ b/.github/workflows/deploy-preprod.yml @@ -17,6 +17,7 @@ jobs: id: version run: | if [ -z "${{ github.event.inputs.version }}" ]; then + git pull release_version=$(cat lerna.json | jq -r '.version') else release_version=${{ github.event.inputs.version }} diff --git a/.github/workflows/release-master.yml b/.github/workflows/release-master.yml index 20a48f5802..41af142bfc 100644 --- a/.github/workflows/release-master.yml +++ b/.github/workflows/release-master.yml @@ -134,6 +134,7 @@ jobs: - name: Get the latest budibase release version id: version run: | + git pull release_version=$(cat lerna.json | jq -r '.version') echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV