File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 77
77
mkdir -p framework-arduinoespressif32/tools/slave_firmware
78
78
mv slave_firmware/* framework-arduinoespressif32/tools/slave_firmware/
79
79
mv framework-arduinoespressif32/release-info.txt .
80
- IDF_BRANCH=$(grep '^IDF_BRANCH=' release-info.txt | cut -d'=' -f2 | tr -d '"')
81
- IDF_COMMIT=$(grep '^IDF_COMMIT=' release-info.txt | cut -d'=' -f2 | tr -d '"')
80
+ IDF_BRANCH=$(grep 'esp-idf branch' release-info.txt | sed -E 's/.*branch \[([^]]+)\].*/\1/')
81
+ IDF_COMMIT=$(grep 'esp-idf branch' release-info.txt | sed -E 's/.*commit \[([^]]+)\].*/\1/')
82
+ echo "IDF_BRANCH=$IDF_BRANCH"
83
+ echo "IDF_COMMIT=$IDF_COMMIT"
82
84
idf_version_string="${IDF_BRANCH//\//_}-$IDF_COMMIT"
83
85
7z a -mx=9 -tzip -xr'!.*' framework-arduinoespressif32-${idf_version_string}.zip framework-arduinoespressif32/
84
86
96
98
- name : Set tag name
97
99
id : set_tag_name
98
100
run : |
99
- IDF_VERSION=$(grep '^IDF_VERSION= ' release-info.txt | cut -d'=' -f2 | cut -d'.' -f1,2 | tr -d '" ')
101
+ IDF_VERSION=$(grep 'esp-idf branch ' release-info.txt | sed -E 's/.*branch \[release\/v([0-9]+\.[0-9]+)\].*/\1/ ')
100
102
DATE=$(date +"%d.%m")
101
103
echo "tag_name=IDF${IDF_VERSION}-${DATE}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments