From db572b11250379b8efb8276e7c6ce2d637a875de Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:17:51 +0100 Subject: [PATCH] Don't use GH env variable --- .github/workflows/Tasmota_build_devel.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }}