diff --git a/.github/workflows/action-build-and-publish.yml b/.github/workflows/action-build-and-publish.yml index 076ea13..588eba8 100644 --- a/.github/workflows/action-build-and-publish.yml +++ b/.github/workflows/action-build-and-publish.yml @@ -12,21 +12,31 @@ on: required: false type: string default: ESPHome - manifest_filename: + manifest-filename: description: Filename of the manifest to write. required: false type: string default: manifest.json - esphome_version: + esphome-version: description: Version of ESPHome to build for. required: false type: string default: latest - build_fw: + build-fw: description: Build the firmware required: false type: boolean default: true + release-summary: + description: A summary of the release that will be added to the manifest file. + required: false + type: string + default: "" + release-url: + description: A URL to the release page that will be added to the manifest file. + required: false + type: string + default: "" jobs: prepare: @@ -55,6 +65,8 @@ jobs: with: yaml-file: ${{ matrix.file }} version: ${{ inputs.esphome_version }} + release-summary: ${{ inputs.release-summary }} + release-url: ${{ inputs.release-url }} - run: | mkdir output mv "${{ steps.esphome-build.outputs.name }}" output/ diff --git a/.github/workflows/workflow-bpmk1-fw-change.yml b/.github/workflows/workflow-bpmk1-fw-change.yml index 3b4ff1e..d83fd99 100644 --- a/.github/workflows/workflow-bpmk1-fw-change.yml +++ b/.github/workflows/workflow-bpmk1-fw-change.yml @@ -12,9 +12,20 @@ on: jobs: build: - uses: ./.github/workflows/action-build-and-publish.yml - with: - files: bed-presence-mk1.factory.yaml - name: Bed Presence Mk1 - esphome_version: latest - manifest_filename: bpmk1-manifest.json + steps: + - name: Get release info + id: release-info + uses: jbutcher5/read-yaml@1.6 + with: + file: bed-presence-mk1/release-info.yaml + key-path: '["release-summary", "release-url"]' + - run: echo "${{ steps.release-info.outputs.data }}" + - run: echo "${{ steps.release-info.outputs.data.release-summary }}" + - run: echo "${{ steps.release-info.outputs.data.release-url }}" + - name: Build and Publish + uses: ./.github/workflows/action-build-and-publish.yml + with: + files: bed-presence-mk1.factory.yaml + name: Bed Presence Mk1 + esphome-version: latest + manifest-filename: bpmk1-manifest.json diff --git a/.github/workflows/workflow-pages-change.yml b/.github/workflows/workflow-pages-change.yml index 4192baf..ada1ddd 100644 --- a/.github/workflows/workflow-pages-change.yml +++ b/.github/workflows/workflow-pages-change.yml @@ -13,4 +13,4 @@ jobs: with: files: bed-presence-mk1.yaml name: Bed Presence Mk1 - build_fw: false + build-fw: false diff --git a/bed-presence-mk1/release-info.yaml b/bed-presence-mk1/release-info.yaml new file mode 100644 index 0000000..bfdc91b --- /dev/null +++ b/bed-presence-mk1/release-info.yaml @@ -0,0 +1,2 @@ +"release-summary": "Testing release summary (1)" +"release-url": "https://docs.elevatedsensors.com/webtools"