diff --git a/.github/workflows/Tasmota_build_devel.yml b/.github/workflows/Tasmota_build_devel.yml index c1ac0a819..65c2dcc01 100644 --- a/.github/workflows/Tasmota_build_devel.yml +++ b/.github/workflows/Tasmota_build_devel.yml @@ -30,7 +30,7 @@ jobs: COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") COMMIT_SHA_SHORT=${COMMIT_SHA_LONG::7} echo "COMMIT_SHA=$COMMIT_SHA_SHORT" >> $GITHUB_ENV - echo $COMMIT_SHA_SHORT + - name: Install clang compiler run: | sudo apt-get install -f clang @@ -121,8 +121,8 @@ jobs: cp ./platformio_override_sample.ini ./platformio_override.ini - name: Add SHA to footer run: | - SHA=${{ env.COMMIT_SHA }} - echo $SHA + COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") + SHA=${COMMIT_SHA_LONG::7} sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h - name: Run PlatformIO run: platformio run -e ${{ matrix.variant }} @@ -164,8 +164,8 @@ jobs: pip install -U platformio - name: Add SHA to footer run: | - SHA=${{ env.COMMIT_SHA }} - echo $SHA + COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") + SHA=${COMMIT_SHA_LONG::7} sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h - name: Run PlatformIO run: platformio run -e ${{ matrix.variant }} @@ -221,8 +221,8 @@ jobs: path: ./firmware - name: Add SHA to footer run: | - SHA=${{ env.COMMIT_SHA }} - echo $SHA + COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") + SHA=${COMMIT_SHA_LONG::7} sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h - name: Run PlatformIO run: platformio run -e ${{ matrix.variant }} @@ -262,8 +262,8 @@ jobs: path: ./firmware - name: Add SHA to footer run: | - SHA=${{ env.COMMIT_SHA }} - echo $SHA + COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") + SHA=${COMMIT_SHA_LONG::7} sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h - name: Run PlatformIO run: platformio run -e ${{ matrix.variant }}-${{ matrix.language }}