Skip to content

Commit

Permalink
Fix missing metadata.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Mar 4, 2024
1 parent f1ba604 commit a58cd45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ jobs:
function update_metadata() {
cd ~/.m2/repository/${1}
find . -name "*.jar" -o -name "*.pom" -o -name "${F_META}" | cpio -updm ${REPO}/${1}
find . -name "*.jar" -o -name "*.pom" | cpio -updm ${REPO}/${1}
cd ${REPO}/${1}
if [ ! -f ${F_META} ]; then
aritifactId=$(echo ${1} | awk -F'/' '{print $NF}')
echo '<?xml version="1.0" encoding="UTF-8"?>
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<metadata>
<groupId>org.weasis.core</groupId>
<artifactId>w${aritifactId}</artifactId>
<artifactId>${aritifactId}</artifactId>
<versioning>
<release></release>
<versions>
<version></version>
<version>${TAG_VERSION}</version>
</versions>
<lastUpdated></lastUpdated>
</versioning>
</metadata>' > ${F_META}
</metadata>" > ${F_META}
fi
xmlstarlet ed --inplace -u "//metadata/version" -v ${TAG_VERSION} -u "//metadata/versioning/release" -v ${TAG_VERSION} \
Expand Down

0 comments on commit a58cd45

Please sign in to comment.