From 237019282dd54887bf0ea2a813cdbced49fadf7a Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 16 Jul 2020 20:49:04 +0200 Subject: [PATCH] Add update_zh.yml --- .github/workflows/update_zh.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/update_zh.yml diff --git a/.github/workflows/update_zh.yml b/.github/workflows/update_zh.yml new file mode 100644 index 00000000..13b06ea5 --- /dev/null +++ b/.github/workflows/update_zh.yml @@ -0,0 +1,22 @@ +name: Update zigbee-herdsman +on: + repository_dispatch: + types: update_zh + +jobs: + update_zh: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + - uses: actions/setup-node@v2-beta + with: + node-version: 12 + - run: npm install zigbee-herdsman@${{ github.event.client_payload.version }} --save-exact + - run: rm -rf node_modules npm-shrinkwrap.json && npm install && npm shrinkwrap --dev + - uses: peter-evans/create-pull-request@v2 + with: + commit-message: Update zigbee-herdsman to ${{ github.event.client_payload.version }} + branch: "update_zh" + title: Update zigbee-herdsman