Skip to content

Commit 7afcaac

Browse files
committed
Get current date in action
1 parent 6e194bc commit 7afcaac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

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

22+
- name: Get current date
23+
id: date
24+
run: echo "date=$(date +'%b_%d_%Y')" >> $GITHUB_OUTPUT
25+
26+
- name: Get current date
27+
id: dateNoScores
28+
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
29+
2230
- name: Extract branch name
2331
run: echo "BRANCH=${{github.ref_name}}" >> $GITHUB_ENV
2432

@@ -88,14 +96,6 @@ jobs:
8896
--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 }}\""
8997
--export-binaries
9098

91-
- name: Get current date
92-
id: date
93-
run: echo "date=$(date +'%b_%d_%Y')" >> $GITHUB_OUTPUT
94-
95-
- name: Get current date
96-
id: dateNoScores
97-
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
98-
9999
- name: Rename binary
100100
run: |
101101
cd Firmware/RTK_Surveyor/build/esp32.esp32.esp32/

0 commit comments

Comments
 (0)