Skip to content

Add substitutions input to support ESPHome build-time substitutions#93

Open
edwardtfn wants to merge 5 commits intoesphome:mainfrom
edwardtfn:add-substitutions-support
Open

Add substitutions input to support ESPHome build-time substitutions#93
edwardtfn wants to merge 5 commits intoesphome:mainfrom
edwardtfn:add-substitutions-support

Conversation

@edwardtfn
Copy link
Copy Markdown

Closes #58

Adds a substitutions input to the action, allowing build-time substitutions to be passed to ESPHome via the -s flag. Each substitution is provided as a key=value pair on its own line.

Example

- uses: esphome/build-action@v6
  with:
    yaml-file: firmware/config.yaml
    substitutions: |
      name=my-device
      rfid1_miso_pin=GPIO37
      rfid1_clk_pin=GPIO36

Closes esphome#58

Adds a `substitutions` input to the action, allowing build-time substitutions
to be passed to ESPHome via the `-s` flag. Each substitution is provided as a
`key=value` pair on its own line.

## Example
```yaml
- uses: esphome/build-action@v6
  with:
    yaml-file: firmware/config.yaml
    substitutions: |
      name=my-device
      rfid1_miso_pin=GPIO37
      rfid1_clk_pin=GPIO36
```
@edwardtfn edwardtfn marked this pull request as ready for review March 15, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support build parameters

1 participant