Move more things to hw_relays
#34
Workflow file for this run
This file contains hidden or 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: ESPHome Memory Analysis | |
| # yamllint disable-line rule:truthy | |
| on: | |
| push: | |
| paths: | |
| - '**/*.yaml' | |
| - 'components/nspanel_ha_blueprint/**' | |
| - '.github/workflows/esphome_analyze_memory.yml' | |
| workflow_dispatch: | |
| jobs: | |
| memory-report: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: true | |
| - name: Build ESPHome memory report in Docker | |
| run: | | |
| mkdir -p .dev | |
| docker run --rm \ | |
| -v $PWD:/work \ | |
| -w /work \ | |
| esphome/esphome:dev \ | |
| analyze-memory nspanel_esphome.yaml > .dev/memory_report.txt | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Commit memory report | |
| run: | | |
| git add .dev/memory_report.txt | |
| git commit -m "Update ESPHome memory report" || echo "No changes to commit" | |
| - name: Push changes | |
| if: github.event_name == 'push' | |
| run: | | |
| git push origin HEAD:${GITHUB_REF#refs/heads/} | |
| ... |