try to fix to get env variable value

This commit is contained in:
Jason2866 2024-02-29 14:21:06 +01:00 committed by GitHub
parent 34561db70c
commit 4fb1d3a65d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 4 deletions

View File

@ -120,7 +120,8 @@ jobs:
cp ./platformio_override_sample.ini ./platformio_override.ini
- name: Add SHA to footer
run: |
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT = \"\"${{ env.COMMIT_SHA }}\"-\"/g" ./tasmota/include/tasmota_version.h
SHA=${{ env.COMMIT_SHA }}
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 }}
- name: Upload safeboot firmware artifacts
@ -161,7 +162,8 @@ jobs:
pip install -U platformio
- name: Add SHA to footer
run: |
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT = \"\"${{ env.COMMIT_SHA }}\"-\"/g" ./tasmota/include/tasmota_version.h
SHA=${{ env.COMMIT_SHA }}
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 }}
- name: Upload firmware artifacts
@ -216,7 +218,8 @@ jobs:
path: ./firmware
- name: Add SHA to footer
run: |
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT = \"\"${{ env.COMMIT_SHA }}\"-\"/g" ./tasmota/include/tasmota_version.h
SHA=${{ env.COMMIT_SHA }}
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 }}
- name: Upload firmware artifacts
@ -255,7 +258,8 @@ jobs:
path: ./firmware
- name: Add SHA to footer
run: |
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT = \"\"${{ env.COMMIT_SHA }}\"-\"/g" ./tasmota/include/tasmota_version.h
SHA=${{ env.COMMIT_SHA }}
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 }}
- name: Upload language firmware artifacts