This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch fix/draft-release-verify-version in repository https://gitbox.apache.org/repos/asf/cordova-plugin-network-information.git
commit a492e35149a5c84c4fc7e78d1243a7b75c0e5c95 Author: Erisu <[email protected]> AuthorDate: Tue Apr 28 18:29:14 2026 +0900 chore(workflow): fix verify target release version for plugins --- .github/workflows/draft-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 98ecf5a..65c01de 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -68,14 +68,14 @@ jobs: - name: Verify Target Release Version run: | PACKAGE_VERSION=$(jq -r '.version' package.json) - if [ $PACKAGE_VERSION != "$TARGET_RELEASE_VERSION" ]; then + if [ "$PACKAGE_VERSION" != "$TARGET_RELEASE_VERSION" ]; then echo "Mismatch version detected between tag version ($TARGET_RELEASE_VERSION) and package version ($PACKAGE_VERSION)" exit 1 fi if [ -f "plugin.xml" ]; then - PLUGIN_VERSION=$(yq -p=xml -o=json '.plugin.+@version' plugin.xml) - if [ $PLUGIN_VERSION != "$TARGET_RELEASE_VERSION" ]; then + PLUGIN_VERSION=$(yq -p=xml -o=json '.plugin.+@version' plugin.xml | jq -r .) + if [ "$PLUGIN_VERSION" != "$TARGET_RELEASE_VERSION" ]; then echo "Mismatch version detected between tag version ($TARGET_RELEASE_VERSION) and plugin version ($PLUGIN_VERSION)" exit 1 fi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
