Skip to content

Prepare for release 5.0.0 #12

Prepare for release 5.0.0

Prepare for release 5.0.0 #12

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