File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2121 current_version=$(jq '.version' package.json)
2222 echo "Current version: $current_version"
2323
24- git fetch origin ${{ github.event.pull_request.base.ref }}
25- git checkout ${{ github.event.pull_request.base.ref }}
26- previous_version=$(jq -r '.version' package.json)
24+ previous_version=$(git show origin/${{ github.event.pull_request.base.ref }}:tools/spectral/ipa/package.json | jq -r '.version')
2725
2826 if [[ -z "$previous_version" || "$previous_version" == "null" ]]; then
2927 previous_version="none"
3230
3331 version_bump=$([[ "$previous_version" != "v$current_version" ]] && echo "true" || echo "false")
3432 - name : Check Changelog
33+ working-directory : tools/spectral/ipa
3534 env :
3635 NEW_VERSION : ${{ steps.version_check.outputs.version_bump }}
3736 run : |
You can’t perform that action at this time.
0 commit comments