mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-09 13:31:41 +00:00
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
name: Update zigbee-frontend
|
|
on:
|
|
repository_dispatch:
|
|
types: update_frontend
|
|
|
|
jobs:
|
|
update_frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: dev
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- run: npm install zigbee2mqtt-frontend@${{ github.event.client_payload.version }} --save-exact
|
|
- uses: peter-evans/create-pull-request@v3
|
|
id: cpr
|
|
with:
|
|
commit-message: Update zigbee2mqtt-frontend to ${{ github.event.client_payload.version }}
|
|
branch: "update_frontend"
|
|
title: Update zigbee-frontend to ${{ github.event.client_payload.version }}
|
|
- run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail
|
|
- uses: peter-evans/enable-pull-request-automerge@v1
|
|
if: steps.cpr.outputs.pull-request-operation == 'created'
|
|
with:
|
|
token: ${{ secrets.CR_PAT }}
|
|
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
merge-method: squash
|