We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8b79f commit 107d123Copy full SHA for 107d123
.github/workflows/ipa-changelog.yml
@@ -25,8 +25,13 @@ jobs:
25
current_version=$(jq '.version' package.json)
26
echo "Current version: $current_version"
27
28
- git fetch --tags
29
- previous_version=$(git tag --sort=-v:refname | head -n 1 || echo "none")
+ git fetch origin ${{ github.event.pull_request.base.ref }}
+ git checkout ${{ github.event.pull_request.base.ref }}
30
+ previous_version=$(jq -r '.version' package.json)
31
+
32
+ if [[ -z "$previous_version" || "$previous_version" == "null" ]]; then
33
+ previous_version="none"
34
+ fi
35
echo "Previous version: $previous_version"
36
37
version_bump=$([[ "$previous_version" != "v$current_version" ]] && echo "true" || echo "false")
0 commit comments