From 8386927a805d1050853d8d87d97dfed6129bebb2 Mon Sep 17 00:00:00 2001 From: Andrew Ghostuhin Date: Thu, 17 Aug 2023 01:17:40 +0300 Subject: [PATCH] Update version.yaml Signed-off-by: Andrew Ghostuhin --- .github/workflows/version.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index 36632304..55c31c21 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -38,10 +38,10 @@ jobs: - name: Check for @atls version changes id: check-versions run: | - FILES=$(git diff --name-only HEAD~1 HEAD | grep 'package.json') + FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep 'package.json') for FILE in $FILES; do # Extract old and new version for @atls dependencies - OLD_VERSIONS=$(git show HEAD~1:$FILE | jq '.dependencies | with_entries(select(.key | startswith("@atls/"))) | .[]') + OLD_VERSIONS=$(git show ${{ github.event.pull_request.base.sha }}:$FILE | jq '.dependencies | with_entries(select(.key | startswith("@atls/"))) | .[]') NEW_VERSIONS=$(cat $FILE | jq '.dependencies | with_entries(select(.key | startswith("@atls/"))) | .[]') # Check if old and new versions are different