Skip to content

Commit

Permalink
Use project.version for combine manifest build (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas authored Jul 4, 2024
1 parent 6427e44 commit 288b6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
mkdir -p output/${{ matrix.device }}
mv ${{ steps.esphome-build.outputs.name }}/* output/${{ matrix.device }}/
echo ${{ steps.esphome-build.outputs.version }} > output/${{ matrix.device }}/version
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
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
- published
workflow_dispatch:
inputs:
release-tag:
description: "Release tag"
default: "x.x.x"
required: true
type: string
release-url:
description: "Release URL"
default: "https://github.com"
Expand Down Expand Up @@ -45,7 +40,7 @@ jobs:
path: files
- name: 🔨 Generate device manifest.json
run: |
version=${{ github.event.release.tag_name || inputs.release-tag }}
version=cat(project_version)
jq -s --arg version "$version" '{"name": "${{ matrix.name }}", "version": $version, "home_assistant_domain": "esphome", "builds":.}' files/*/manifest.json > files/manifest.json
- name: 🧪 Display structure of job
run: ls -R
Expand Down

0 comments on commit 288b6b8

Please sign in to comment.