Skip to content

Commit

Permalink
Merge pull request #251 from atls/fix/atls-diff
Browse files Browse the repository at this point in the history
Update version.yaml
  • Loading branch information
TorinAsakura authored Aug 16, 2023
2 parents a7907a9 + 8386927 commit b5f3919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5f3919

Please sign in to comment.