diff --git a/README.md b/README.md index bf2762f..e7a3f4e 100644 --- a/README.md +++ b/README.md @@ -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. | diff --git a/action.yml b/action.yml index d2d580b..78def2b 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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 @@ -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