Skip to content

Commit 023acf0

Browse files
committed
Update binary creation workflows
1 parent d4459e0 commit 023acf0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/compile-rc.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
- name: Get current date
6969
id: date
7070
run: echo "date=$(date +'%b_%d_%Y')" >> $GITHUB_OUTPUT
71-
71+
72+
- name: Get current date
73+
id: dateNoScores
74+
run: echo "dateNoScores=$(date +'%b %d %Y')" >> $GITHUB_OUTPUT
75+
7276
- name: Rename binary
7377
run: |
7478
cd Firmware/RTK_Surveyor
@@ -86,15 +90,15 @@ jobs:
8690
destination_folder: ''
8791
user_email: '[email protected]'
8892
user_name: 'nseidle'
89-
commit_message: 'Github Action - Updating Binary ${{ steps.date.outputs.date }}'
93+
commit_message: 'Github Action - Updating Binary ${{ steps.dateNoScores.outputs.dateNoScores }}'
9094

9195
- name: Update JSON File
9296
uses: "DamianReeves/write-file-action@master"
9397
with:
9498
path: RTK-RC-Firmware.json
9599
write-mode: overwrite
96100
contents: |
97-
{"Configurations": [{"Version":"${{ env.VERSION }}-${{ steps.date.outputs.date }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.RC_PREFIX }}${{ steps.date.outputs.date }}.bin"}]}
101+
{"Configurations": [{"Version":"${{ env.VERSION }}-${{ steps.dateNoScores.outputs.dateNoScores }}", "URL":"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Firmware_Binaries/main/${{ env.FILENAME_PREFIX }}${{ env.RC_PREFIX }}${{ steps.date.outputs.date }}.bin"}]}
98102
99103
- name: Push JSON to Binaries Repo
100104
uses: dmnemec/copy_file_to_another_repo_action@main
@@ -106,4 +110,4 @@ jobs:
106110
destination_folder: ''
107111
user_email: '[email protected]'
108112
user_name: 'nseidle'
109-
commit_message: 'Github Action - Updating JSON ${{ steps.date.outputs.date }}'
113+
commit_message: 'Github Action - Updating JSON ${{ steps.dateNoScores.outputs.dateNoScores }}'

.github/workflows/compile-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66

77
env:
8-
FILENAME_PREFIX: RTK_Surveyor_Firmware_
8+
FILENAME_PREFIX: RTK_Surveyor_Firmware_v
99
VERSION: 3.1
1010
POINTPERFECT_TOKEN: ${{ secrets.POINTPERFECT_TOKEN }}
1111

0 commit comments

Comments
 (0)