From 9d30c12dc409f596e98e92d70f4060f3fd410f61 Mon Sep 17 00:00:00 2001 From: LordLumineer Date: Sun, 12 Nov 2023 16:27:00 +0100 Subject: [PATCH] update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c449113..708b92b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,8 @@ jobs: - name: Get Previous Version id: get_previous_version run: | - PREVIOUS_VERSION=$(git show origin/main:ThroneAPI.py | grep -oP "API_VERSION = '\K[0-9.]+" ) + git fetch origin + PREVIOUS_VERSION=$(git show origin/main:ThroneAPI.py | grep -oP "API_VERSION = '\K[0-9.]+") if [ -z "$PREVIOUS_VERSION" ]; then echo "::set-output name=version::0.0.0" # Set a default version for the first commit else