We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b9147 commit 37936beCopy full SHA for 37936be
1 file changed
tools/build-stm-latest.sh
@@ -17,15 +17,15 @@ fi
17
# get the date
18
date=$(date '+%Y-%m-%d')
19
20
-# get the git hash
21
-git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
+# get the git tag
+git_tag="$(git describe --dirty || echo unknown)"
22
23
# build the versions
24
for board in PYBV3 PYBV10; do
25
echo $board
26
lower_board=$(echo $board | tr A-Z a-z)
27
build_dir=/tmp/stm-build-$board
28
make -B BOARD=$board BUILD=$build_dir || exit 1
29
- mv $build_dir/firmware.dfu $dest_dir/$lower_board-$date-$git_hash.dfu
+ mv $build_dir/firmware.dfu $dest_dir/$lower_board-$date-$git_tag.dfu
30
rm -rf $build_dir
31
done
0 commit comments