-
Notifications
You must be signed in to change notification settings - Fork 16
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
b8079a7
commit fab543c
Showing
1 changed file
with
6 additions
and
2 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 |
---|---|---|
|
@@ -15,18 +15,22 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set uppercase DEVICE_NAME | ||
run: | | ||
echo "UPPERCASE_DEVICE_NAME=$(echo $DEVICE_NAME | tr '[:lower:]' '[:upper:]')" >> $GITHUB_ENV | ||
- name: Build Firmware | ||
uses: esphome/[email protected] | ||
id: esphome-build | ||
with: | ||
yaml_file: Integrations/ESPHome/${{ env.DEVICE_NAME^^ }}.yaml | ||
yaml_file: Integrations/ESPHome/${{ env.UPPERCASE_DEVICE_NAME }}.yaml | ||
version: 'latest' | ||
cache: true | ||
|
||
- name: Read version from YAML file | ||
id: read_version | ||
run: | | ||
version=$(awk '/substitutions:/ {found=1} found && /version:/ {print $2; exit}' Integrations/ESPHome/${{ env.DEVICE_NAME^^ }}.yaml | tr -d '"') | ||
version=$(awk '/substitutions:/ {found=1} found && /version:/ {print $2; exit}' Integrations/ESPHome/${{ env.UPPERCASE_DEVICE_NAME }}.yaml | tr -d '"') | ||
echo "project_version=$version" >> $GITHUB_ENV | ||
- name: Move generated files to output | ||
|