Skip to content

Commit

Permalink
Update config (#4)
Browse files Browse the repository at this point in the history
Update workspace config to send commit message and sha to the installer.
  • Loading branch information
ste2425 authored Nov 21, 2022
1 parent cf1fed2 commit 94f62db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/buildInstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ jobs:
run: |
copy main\software\psp-consolizer\build\arduino.samd.nano_33_iot\psp-consolizer.ino.bin installer\PSP-Bluetooth-Controller.ino.bin
copy bluepad\bluepad32-nina-v3.5.1\bluepad32-nina-full-v3.5.1.bin installer\bluepad32-nina.bin
((Get-Content -path installer\config.json -Raw) -replace '<changeme>','Bluepad32 for NINA v3.5.1') | Set-Content -Path installer\config.json
((Get-Content -path installer\config.json -Raw) -replace '<commitmessage>','${{ github.event.head_commit.message }}') | Set-Content -Path installer\config.json
((Get-Content -path installer\config.json -Raw) -replace '<commitsha>','${{ join(github.event.commits.*.message, ', ') }}') | Set-Content -Path installer\config.json
Get-Content installer\config.json -Raw | ConvertFrom-Json | ForEach-Object { $_.commitMessage = '${{ github.event.head_commit.message }}'; $_.commitsha = '${{ github.event.head_commit.id }}'; $_.expectedFirmwareVersionText = 'Bluepad32 for NINA v3.5.1'; $_ } | ConvertTo-Json | Set-Content installer\config.json
- name: Run yarn package
run: yarn package
Expand Down

0 comments on commit 94f62db

Please sign in to comment.