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 f13caf4 commit 4aeb3ae
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 @@ -26,7 +26,7 @@ jobs:
id: check_change
run: |
dependency="@egovernments/digit-ui-module-workbench"
branch="origin/test-action" # replace with the branch you want to compare against
branch="test-action" # replace with the branch you want to compare against
# 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
Expand All @@ -35,7 +35,7 @@ jobs:
echo "CURRENT_VERSION=$current_version"

# Get the version from the specific 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 "$branch":"$SOURCE_JSON_FILE" | jq -r --arg dep "$dependency" '.devDependencies[$dep]')
echo "branch_version=$branch_version"

# Check if the versions are different
Expand Down

0 comments on commit 4aeb3ae

Please sign in to comment.