Skip to content

Commit

Permalink
substitute version in (#17)
Browse files Browse the repository at this point in the history
* substitute version in

* try env here

* try env here

* define default version of 0.0.0

* accidental paste
  • Loading branch information
chrisns authored Jun 1, 2024
1 parent df9b4c6 commit c421681
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
needs:
- semver
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
Expand All @@ -27,6 +29,8 @@ jobs:
- uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3
with:
runCmd: rake build
env: |
VERSION=${{ needs.semver.outputs.semantic_version}}
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: firmware-factory.bin
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ end
desc "Build/Compile with esphome"
task :build do
sh '[ ! -f "lexis.ttf" ] && wget -L -O "lexis.ttf" "https://github.com/damianvila/font-lexis/raw/main/fonts/lexis.ttf" || true'
sh "esphome compile childrensclock.yaml"
sh "esphome -s VERSION ${VERSION:=0.0.0} compile childrensclock.yaml"
end
2 changes: 1 addition & 1 deletion childrensclock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ esphome:
- src/childrensclock.h
project:
name: chrisns.childrens-clock
version: 0.0.1
version: $VERSION
on_boot:
priority: 700
then:
Expand Down

0 comments on commit c421681

Please sign in to comment.