generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76caa64
commit 21f10f2
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters