Skip to content

Commit

Permalink
Update updateVersion.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov authored Jan 10, 2024
1 parent 27ac044 commit a2acee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/updateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
# Check if the dependency is present in the package.json file
if jq --arg dep "$dependency" '.devDependencies | has($dep)' "$SOURCE_JSON_FILE" >/dev/null; then
# Get the current version
current_version=$(jq -r --arg dep "$dependency" '.dependencies[$dep]' "$DESTIN_JSON_FILE")
current_version=$(jq -r --arg dep "$dependency" '.devDependencies[$dep]' "$SOURCE_JSON_FILE")
echo "CURRENT_VERSION=$current_version"
# Get the version from the specified branch for the specific file
branch_version=$(git show "origin/$branch":"$SOURCE_JSON_FILE" | jq -r --arg dep "$dependency" '.devDependencies[$dep]')
branch_version=$(git show "origin/$branch":"$DESTIN_JSON_FILE" | jq -r --arg dep "$dependency" '.dependencies[$dep]')
echo "branch_version=$branch_version"
# Check if the versions are different
Expand Down

0 comments on commit a2acee7

Please sign in to comment.