diff --git a/.drone.yml b/.drone.yml index 0975c16..b954e1f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: - rm -rf sources/.drone.yml # Set Version and AddonVersion - export VERSION=$DRONE_TAG - - export ADDON_VERSION=$(echo $DRONE_TAG | sef 's/\.//g') + - export ADDON_VERSION=$(echo $DRONE_TAG | sed -E 's/(0|)\.//g') - sed -i "s/%VERSION%/$VERSION/g" sources/AchievementInfoCommon.lua - sed -i "s/%VERSION%/$VERSION/g" sources/AchievementInfo.txt - sed -i "s/%ADDON_VERSION%/$ADDON_VERSION/g" sources/AchievementInfo.txt