Skip to content

Commit 6e194bc

Browse files
committed
Get correct branch name
1 parent c17828c commit 6e194bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/compile-rtk-firmware.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@master
2121

22+
- name: Extract branch name
23+
run: echo "BRANCH=${{github.ref_name}}" >> $GITHUB_ENV
24+
2225
#File_Name_v3_1.bin
2326
#File_Name_RC-Jan_26_2023.bin
2427
- name: Create file ending and compiler flags based on branch
@@ -82,7 +85,7 @@ jobs:
8285
run: arduino-cli compile --fqbn esp32:esp32:esp32 ./Firmware/RTK_Surveyor/RTK_Surveyor.ino
8386
--build-property build.partitions=partitions
8487
--build-property upload.maximum_size=3145728
85-
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_TOKEN=$POINTPERFECT_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
88+
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_TOKEN=$POINTPERFECT_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
8689
--export-binaries
8790

8891
- name: Get current date
@@ -93,9 +96,6 @@ jobs:
9396
id: dateNoScores
9497
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
9598

96-
- name: Extract branch name
97-
run: echo "BRANCH=${{github.ref_name}}" >> $GITHUB_ENV
98-
9999
- name: Rename binary
100100
run: |
101101
cd Firmware/RTK_Surveyor/build/esp32.esp32.esp32/

0 commit comments

Comments
 (0)