From b533be655fb7c50b64df0d72c35400c418e2196a Mon Sep 17 00:00:00 2001 From: Cam <21029087+cxmeel@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:09:03 +0000 Subject: [PATCH] Update version retrieval in pull-request.yml --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 35cfe86..2cc9b25 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -36,11 +36,11 @@ jobs: - name: Fetch version from package.json id: current-version - run: jq -r '.version' package.json >> $GITHUB_ENV + run: echo "current-version=$(jq -r .version package.json)" >> $GITHUB_ENV - name: Get previous release version id: previous-version - run: git describe --tags --abbrev=0 >> $GITHUB_ENV + run: echo "previous-version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - name: Ensure version has changed run: ${{ steps.current-version.outputs.current-version != steps.previous-version.outputs.previous-version }}