Don't use GH env variable

This commit is contained in:
Jason2866 2024-02-29 15:17:51 +01:00 committed by GitHub
parent d52fd2050a
commit db572b1125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}