Skip to content

Commit 8be59b8

Browse files
authored
add commit to release info
1 parent 9d8c0e7 commit 8be59b8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/config.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ AR_REPO="$AR_USER/arduino-esp32"
3636
# Arduino branch to use
3737
AR_BRANCH="master"
3838

39-
rm -rf release-info.txt
40-
echo "Framework built from Tasmota IDF branch $IDF_BRANCH and $AR_REPO branch $AR_BRANCH" >> release-info.txt
41-
4239
AR_REPO_URL="https://github.com/$AR_REPO.git"
4340
if [ -n $GITHUB_TOKEN ]; then
4441
AR_REPO_URL="https://$GITHUB_TOKEN@github.com/$AR_REPO.git"
@@ -53,6 +50,12 @@ AR_ESPTOOL_PY="$AR_TOOLS/esptool.py"
5350
AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py"
5451
AR_SDK="$AR_TOOLS/sdk/$IDF_TARGET"
5552

53+
IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
54+
AR_COMMIT=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "")
55+
56+
rm -rf release-info.txt
57+
echo "Framework built from Tasmota IDF branch $IDF_BRANCH commit $IDF_COMMIT and $AR_REPO branch $AR_BRANCH commit $AR_COMMIT" >> release-info.txt
58+
5659
function get_os(){
5760
OSBITS=`arch`
5861
if [[ "$OSTYPE" == "linux"* ]]; then

0 commit comments

Comments
 (0)