Skip to content

Commit

Permalink
[slim] Tag release version with actions env.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohuang committed Mar 4, 2021
1 parent c714ece commit 28d1570
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,16 @@ prepare_stage() {
# 19.07.7: means openwrt branch
# 210303: means 2021-03-03 (year-mon-day)
# 01: means release number
gittag=$( git describe --always )
sed -i "s/##SLIMVERSIONTAG/$gittag/g" $SLIM_CFG_WORK_PATH/.config


# if RELEASE_VERSION starts with "v"
if [[ $RELEASE_VERSION == v* ]] ;
then
sed -i "s/##SLIMVERSIONTAG/$RELEASE_VERSION/g" $SLIM_CFG_WORK_PATH/.config
else
gittag=$( git describe --always )
sed -i "s/##SLIMVERSIONTAG/$gittag/g" $SLIM_CFG_WORK_PATH/.config
fi

cd $SLIM_CFG_TOP_DIR
}

Expand Down

0 comments on commit 28d1570

Please sign in to comment.