You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2026/04/28 09:29:39 UTC
(cordova-plugin-network-information) branch fix/draft-release-verify-version created (now a492e35)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a change to branch fix/draft-release-verify-version
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-network-information.git
at a492e35 chore(workflow): fix verify target release version for plugins
This branch includes the following new commits:
new a492e35 chore(workflow): fix verify target release version for plugins
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
(cordova-plugin-network-information) 01/01: chore(workflow): fix verify target release version for plugins
Posted by er...@apache.org.
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 <er...@apache.org>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org