diff --git a/.github/workflows/update_zh.yml b/.github/workflows/update_zh.yml index b949586ad..4223e9c9e 100644 --- a/.github/workflows/update_zh.yml +++ b/.github/workflows/update_zh.yml @@ -16,6 +16,7 @@ jobs: node-version: 14 - run: npm install zigbee-herdsman@${{ github.event.client_payload.version }} --save-exact - uses: peter-evans/create-pull-request@v3 + id: cpr with: commit-message: Update zigbee-herdsman to ${{ github.event.client_payload.version }} branch: "update_zh" @@ -23,5 +24,6 @@ jobs: - 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 \ No newline at end of file diff --git a/.github/workflows/update_zhc.yml b/.github/workflows/update_zhc.yml index 6e372041f..02e0379cf 100644 --- a/.github/workflows/update_zhc.yml +++ b/.github/workflows/update_zhc.yml @@ -16,6 +16,7 @@ jobs: node-version: 14 - run: npm install zigbee-herdsman-converters@${{ github.event.client_payload.version }} --save-exact - uses: peter-evans/create-pull-request@v3 + id: cpr with: commit-message: Update zigbee-herdsman-converters to ${{ github.event.client_payload.version }} branch: "update_zhc" @@ -23,5 +24,6 @@ jobs: - 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 \ No newline at end of file