This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
||||
run: ls -lah .pio/build/ESP32_INA233/ .pio/build/ESP32_INA226/
|
||||
- name: Upload firmware binary for INA233
|
||||
run: |
|
||||
VERSION=$(sed -n 's/#define current_version Version{[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\)}/\1.\2.\3/p' src/global_data/defines.h)
|
||||
VERSION=$(sed -n 's/#define current_software_version Version{[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\)}/\1.\2.\3/p' src/global_data/defines.h)
|
||||
echo "Extracted version: $VERSION"
|
||||
|
||||
curl -X PUT \
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Upload firmware binary for INA226
|
||||
run: |
|
||||
VERSION=$(sed -n 's/#define current_version Version{[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\)}/\1.\2.\3/p' src/global_data/defines.h)
|
||||
VERSION=$(sed -n 's/#define current_software_version Version{[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\)}/\1.\2.\3/p' src/global_data/defines.h)
|
||||
echo "Extracted version: $VERSION"
|
||||
|
||||
curl -X PUT \
|
||||
|
||||
Reference in New Issue
Block a user