Change reference for remote_package instead of dashboard_import #120
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'main' | |
- 'dependabot/**' | |
- 'gh-pages' | |
workflow_dispatch: | |
jobs: | |
ci: | |
name: Building ${{ matrix.file }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
file: | |
- bed-presence-mk1.factory.yaml | |
steps: | |
- name: Checkout source code | |
uses: actions/[email protected] | |
- name: Change remote_package branch to current dev branch | |
run: | | |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | |
echo "Replacing @main with @${branch} in bed-presence-mk1.yaml" | |
sed -i "s/ref: main/ref: ${branch}/g" ./bed-presence-mk1.yaml | |
- name: Build ESPHome firmware to verify configuration | |
uses: esphome/[email protected] | |
id: esphome-build | |
with: | |
yaml-file: ${{ matrix.file }} | |
- uses: actions/[email protected] | |
with: | |
name: ${{ matrix.file }} | |
path: ${{ steps.esphome-build.outputs.name }} |