mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-17 00:51:55 +00:00
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
on:
|
|
repository_dispatch:
|
|
types: update_dep
|
|
|
|
name: update-dep
|
|
|
|
permissions: {}
|
|
jobs:
|
|
update_dep:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: dev
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
- run: npm install ${{ github.event.client_payload.package }}@${{ github.event.client_payload.version }} --save-exact
|
|
- uses: peter-evans/create-pull-request@v5
|
|
id: cpr
|
|
with:
|
|
commit-message: "fix(ignore): update ${{ github.event.client_payload.package }} to ${{ github.event.client_payload.version }}"
|
|
branch: "deps/${{ github.event.client_payload.package }}"
|
|
title: Update ${{ github.event.client_payload.package }} to ${{ github.event.client_payload.version }}
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
- run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail
|
|
- uses: peter-evans/enable-pull-request-automerge@v3
|
|
if: steps.cpr.outputs.pull-request-operation == 'created'
|
|
with:
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
merge-method: squash
|