This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/cordova-plugin-network-information.git
The following commit(s) were added to refs/heads/master by this push:
new e7a6e9e chore(workflow): fix verify target release version for
plugins (#179)
e7a6e9e is described below
commit e7a6e9e596032be312ea82758f620d0cf7de4e11
Author: エリス <[email protected]>
AuthorDate: Tue Apr 28 18:50:36 2026 +0900
chore(workflow): fix verify target release version for plugins (#179)
---
.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]