upgrade_version #537
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
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}} |