From 94f62dba10e936a6d702dde8fd04b0c9a68a2e7b Mon Sep 17 00:00:00 2001 From: Stephen Cooper Date: Mon, 21 Nov 2022 11:46:41 +0000 Subject: [PATCH] Update config (#4) Update workspace config to send commit message and sha to the installer. --- .github/workflows/buildInstaller.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/buildInstaller.yml b/.github/workflows/buildInstaller.yml index c33a2c7..cb01993 100644 --- a/.github/workflows/buildInstaller.yml +++ b/.github/workflows/buildInstaller.yml @@ -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 '','Bluepad32 for NINA v3.5.1') | Set-Content -Path installer\config.json - ((Get-Content -path installer\config.json -Raw) -replace '','${{ github.event.head_commit.message }}') | Set-Content -Path installer\config.json - ((Get-Content -path installer\config.json -Raw) -replace '','${{ 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