Skip to content

upgrade_version

upgrade_version #523

on:
workflow_dispatch:
schedule:
- cron: 0 1 * * *
name: upgrade_version
jobs:
check_version:
name: Check zigbee2mqtt version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: "master"
- name: Check Zigbee2Mqtt version
id: checkversion
run: |
. version.sh
NEW_VERSION=`curl https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest -s | jq .tag_name -r`
echo "ZIGBEE2MQTT_VERSION=$NEW_VERSION" > version.sh
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update zigbee2mqtt version to ${{steps.checkversion.outputs.NEW_VERSION}}
title: Automated Updates of zigbee2mqtt version to ${{steps.checkversion.outputs.NEW_VERSION}}
body: This is an auto-generated PR with zigbee2mqtt update.
branch: feature/upgrade-${{steps.checkversion.outputs.NEW_VERSION}}