octokit/webhooks release #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
"on": | |
repository_dispatch: | |
types: | |
- octokit/webhooks release | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: 16 | |
- run: npm ci | |
- uses: gr2m/await-npm-package-version-action@v1 | |
with: | |
package: "@octokit/webhooks-schemas" | |
version: ${{ github.event.client_payload.release.tag_name }} | |
- run: npm install --save-exact --save-dev @octokit/webhooks-schemas@latest | |
- uses: gr2m/await-npm-package-version-action@v1 | |
with: | |
package: "@octokit/webhooks-types" | |
version: ${{ github.event.client_payload.release.tag_name }} | |
- run: npm install --save-exact @octokit/webhooks-types@latest | |
- run: npm run generate-types | |
- name: create pull request | |
uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
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 <[email protected]> | |
commit-message: "WIP: Webhooks changed - please review" | |
labels: "Type: Maintenance" |