From 7a992fa18048453d6ea989f4b1610a79301783cc Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 16 Jul 2020 19:29:47 +0200 Subject: [PATCH] Create update_zhc.yml --- .github/workflows/update_zhc.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/update_zhc.yml diff --git a/.github/workflows/update_zhc.yml b/.github/workflows/update_zhc.yml new file mode 100644 index 00000000..0ac26eea --- /dev/null +++ b/.github/workflows/update_zhc.yml @@ -0,0 +1,21 @@ +name: Update zigbee-herdsman-converters +on: + repository_dispatch: + types: update_zhc + +jobs: + update_zhc: + 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-converters@${{ github.event.client_payload.version }} + - 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-converters to ${{ github.event.client_payload.version }} + branch: "update_zhc"