Update heatpump.yaml -Remove duplicated Register 4 from sensor #16
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: Update version in heatpump.yaml | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [closed] | |
env: | |
YAML_UPDATED: false | |
jobs: | |
update-version: | |
if: ${{ github.event.pull_request.merged }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Update version | |
run: | | |
cat heatpump.yaml |grep -A7 ^esphome | |
bash .github/scripts/set_version.sh | |
cat heatpump.yaml |grep -A7 ^esphome | |
- name: Commit files | |
if: ${{ env.YAML_UPDATED == 'true' }} | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -a -m "Updated version in heatpump.yaml" | |
- name: Push changes | |
if: ${{ env.YAML_UPDATED == 'true' }} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |