Skip to content

Change reference for remote_package instead of dashboard_import #120

Change reference for remote_package instead of dashboard_import

Change reference for remote_package instead of dashboard_import #120

Workflow file for this run

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 }}