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 }}