diff --git a/.github/workflows/release-target.yml b/.github/workflows/release-target.yml
index a8a3143..260fdd7 100644
--- a/.github/workflows/release-target.yml
+++ b/.github/workflows/release-target.yml
@@ -39,7 +39,7 @@ jobs:
fi
git checkout -b ${release_branch}
- for file in $(find . -name build.gradle)
+ for file in $(find . -name pom.xml)
do
echo "Replacing version for ${file}"
python3 ${{ github.workspace }}/update_osgi_plugins.py ${file} ${release_version}
diff --git a/update_osgi_plugins.py b/update_osgi_plugins.py
index 3dab176..4067abb 100644
--- a/update_osgi_plugins.py
+++ b/update_osgi_plugins.py
@@ -6,8 +6,7 @@
with open(plugin_file, 'r') as fr:
content = fr.read()
- content_new = re.sub('com.dotcms:dotcms:\d{2}\.\d{2}((\.\d{1,2})*)', 'com.dotcms:dotcms:' + replacing_text, content, flags = re.M)
- content_new = re.sub('name: \'dotcms\', version: \'\d{2}\.\d{2}((\.\d{1,2})*)\'', 'name: \'dotcms\', version: \'' + replacing_text + '\'', content_new, flags = re.M)
+ content_new = re.sub('\d{2}\.\d{2}((\.\d{1,2})*)', "{0}".format(replacing_text), content, flags = re.M)
fr.close()
with open(plugin_file, 'w') as fw: