From 931c295c9af50ade970d0fe4ad95493c2e7675ab Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 15 Mar 2023 10:13:02 +0000 Subject: [PATCH] Fix preprod stale deploy (#10034) --- .github/workflows/deploy-preprod.yml | 1 + .github/workflows/release-master.yml | 1 + 2 files changed, 2 insertions(+) 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