Skip to content

Commit

Permalink
Deprecate cache input (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Nov 22, 2024
1 parent 3d3def3 commit 0471083
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ This action is used by the [ESPHome publish workflow](https://github.com/esphome
| `yaml-file` | _None_ | The YAML file to be compiled. |
| `version` | `latest` | The ESPHome version to build using. |
| `platform` | `linux/amd64` | The docker platform to use during build. (linux/amd64, linux/arm64, linux/arm/v7) |
| `cache` | `false` | Whether to cache the build folder. |
| `release-summary` | _None_ | A small summary of the release that will be added to the manifest file. |
| `release-url` | _None_ | A URL to the release page that will be added to the manifest file. |
| `complete-manifest` | `false` | Whether to output a complete manifest file. Defaults to output a partial manifest only. |
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: Cache build directory
required: false
default: false
deprecationMessage: |
There is little to no gain in caching the build directory as
ESPHome will wipe the build artifacts in most cases for releases.
This will be removed in a future release.
release-summary:
description: Release summary
required: false
Expand Down Expand Up @@ -67,6 +71,7 @@ runs:
tags: esphome:${{ inputs.version }}
build-args: VERSION=${{ inputs.version }}
platforms: ${{ inputs.platform }}

- if: ${{ inputs.cache == 'true' }}
id: data-dir
shell: bash
Expand All @@ -93,6 +98,7 @@ runs:
path: ${{ steps.data-dir.outputs.data_dir }}/storage
key: ${{ runner.os }}-esphome-${{ inputs.yaml-file }}-${{ inputs.version }}-storage
save-always: true

- name: Run container
shell: bash
id: build-step
Expand Down

0 comments on commit 0471083

Please sign in to comment.