Skip to content

Commit

Permalink
Add release info into manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Aug 14, 2024
1 parent 76caa64 commit 21f10f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/action-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
required: false
type: boolean
default: true
release-info:
release-info-path:
description: Path to a yaml file containing release-summary and release-url.
required: false
type: string
Expand All @@ -54,27 +54,26 @@ jobs:
file: ${{ fromJson(needs.prepare.outputs.files) }}
steps:
- uses: actions/[email protected]
- name: Get release info
id: release-info
uses: actions-tools/[email protected]
with:
file-path: ${{ inputs.release-info-path }}
fail-on-file-not-found: false
- run: echo "${{ steps.release-info.outputs.release-summary }}"
- run: echo "${{ steps.release-info.outputs.release-url }}"
- uses: esphome/[email protected]
id: esphome-build
with:
yaml-file: ${{ matrix.file }}
version: ${{ inputs.esphome-version }}
release-summary: ${{ inputs.release-summary }}
release-url: ${{ inputs.release-url }}
release-summary: ${{ steps.release-info.outputs.release-summary }}
release-url: ${{ steps.release-info.outputs.release-url }}
- run: |
mkdir output
mv "${{ steps.esphome-build.outputs.name }}" output/
- name: Print output folder structure
run: find output/
- name: Get release info
id: release-info
uses: actions-tools/[email protected]
with:
file-path: ${{ inputs.release-info }}
fail-on-file-not-found: false
- run: echo "${{ steps.release-info.outputs }}"
- run: echo "${{ steps.release-info.outputs.release-summary }}"
- run: echo "${{ steps.release-info.outputs.release-url }}"
- name: Create single manifest.json and update paths
run: |
jq -s '{"name": "${{ inputs.name }}", "version": "${{ steps.esphome-build.outputs.project-version }}", "home_assistant_domain": "esphome", "new_install_improv_wait_time": 15, "builds":.}' output/*/manifest.json > output/tmp.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-bpmk1-fw-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
name: Bed Presence Mk1
esphome-version: latest
manifest-filename: bpmk1-manifest.json
release-info: bed-presence-mk1/release-info.yaml
release-info-path: bed-presence-mk1/release-info.yaml

0 comments on commit 21f10f2

Please sign in to comment.