Skip to content

Commit

Permalink
Fix firmware path in manifest (#585)
Browse files Browse the repository at this point in the history
* Fix alternating the firmware path in manifest

* Add default release summary text

* Adjust sed command

* Test with new sed command

* Try again
  • Loading branch information
klaasnicolaas authored Sep 6, 2024
1 parent 1fe6675 commit 289f2c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
with:
yaml-file: ${{ matrix.firmware }}/${{ matrix.device }}.yaml
version: ${{ matrix.version || 'latest' }}
release-summary: "Check the release notes for more information."
release-url: ${{ inputs.release-url || env.RELEASE_URL }}
cache: true
- name: 🚚 Move generated files to output
Expand All @@ -115,7 +116,8 @@ jobs:
echo ${{ steps.esphome-build.outputs.project-version }} > output/${{ matrix.device }}/project_version
- name: 🔨 Alter path in manifest.json
run: |
sed -i 's/${{ steps.esphome-build.outputs.name }}\//\/${{ matrix.firmware }}\/${{ matrix.device }}\//g' output/${{ matrix.device }}/manifest.json
sed -i 's/${{ steps.esphome-build.outputs.name }}\(\.[a-z]*\)\.bin/\/${{ matrix.firmware }}\/${{ matrix.device }}\/${{ steps.esphome-build.outputs.name }}\1.bin/' output/${{ matrix.device }}/manifest.json
cat output/${{ matrix.device }}/manifest.json
- name: ⬆️ Upload firmware / device artifact
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 289f2c8

Please sign in to comment.