ci(version bump): only increase version if it was changed
This commit is contained in:
parent
c63e20c105
commit
38068c87af
2
.github/workflows/renovate-app-version.sh
vendored
2
.github/workflows/renovate-app-version.sh
vendored
|
@ -26,6 +26,7 @@ do
|
||||||
current_config_version=$(jq -r '.version' "$config_file")
|
current_config_version=$(jq -r '.version' "$config_file")
|
||||||
echo "Current config version: $current_config_version"
|
echo "Current config version: $current_config_version"
|
||||||
|
|
||||||
|
if [[ "$current_config_version" != "$trimmed_version" ]]; then
|
||||||
# Update the version in config.json
|
# Update the version in config.json
|
||||||
contents="$(jq --arg trimmed_version "$trimmed_version" '.version=$trimmed_version' "$config_file")"
|
contents="$(jq --arg trimmed_version "$trimmed_version" '.version=$trimmed_version' "$config_file")"
|
||||||
echo "${contents}" > "$config_file"
|
echo "${contents}" > "$config_file"
|
||||||
|
@ -53,4 +54,5 @@ do
|
||||||
echo "${contents}" > "$config_file"
|
echo "${contents}" > "$config_file"
|
||||||
npx prettier "$config_file" --write
|
npx prettier "$config_file" --write
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user