diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index da503862..e6393911 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,9 +1,8 @@ name: Update -on: +"on": repository_dispatch: - # https://github.com/apps/octokit-release-notifier - types: [octokit/webhooks release] - + types: + - octokit/webhooks release jobs: update: runs-on: ubuntu-latest @@ -12,6 +11,7 @@ jobs: - uses: actions/setup-node@v2 with: cache: npm + node-version: 16 - run: npm ci - uses: gr2m/await-npm-package-version-action@v1 with: @@ -27,11 +27,22 @@ jobs: - name: create pull request uses: gr2m/create-or-update-pull-request-action@v1.x env: - GITHUB_TOKEN: "${{ secrets.OCTOKITBOT_PAT }}" + GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} with: - title: "\U0001F6A7 \U0001F916\U0001F4EF Webhooks changed" - body: "A new release of [@octokit/webhooks-definitions](https://github.com/octokit/webhooks) was just released \U0001F44B\U0001F916\n\nThis pull request updates the TypeScript definitions derived from `@octokit/webhooks-definitions`. I can't tell if the changes are fixes, features or breaking, you'll have to figure that out on yourself and adapt the commit messages accordingly to trigger the right release, see [our commit message conventions](https://github.com/octokit/openapi/blob/main/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version).\n" - branch: "update-octokit-webhooks" + title: 🚧 🤖📯 Webhooks changed + body: > + A new release of + [@octokit/webhooks-definitions](https://github.com/octokit/webhooks) + was just released 👋🤖 + + + This pull request updates the TypeScript definitions derived from + `@octokit/webhooks-definitions`. I can't tell if the changes are + fixes, features or breaking, you'll have to figure that out on + yourself and adapt the commit messages accordingly to trigger the + right release, see [our commit message + conventions](https://github.com/octokit/openapi/blob/main/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version). + branch: update-octokit-webhooks author: Octokit Bot commit-message: "WIP: Webhooks changed - please review" - labels: "maintenance" + labels: maintenance