Update #34163
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
"on": | |
schedule: | |
- cron: 0 */12 * * * | |
repository_dispatch: | |
types: | |
- github-webhooks-update | |
name: Update | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- run: git checkout webhooks-update || true | |
- run: npm ci | |
- name: update .com webhooks | |
run: npm run build:webhooks | |
- name: update GHE webhooks | |
run: npm run build:webhooks -- --ghe | |
- name: update GitHub.AE webhooks | |
run: npm run build:webhooks -- --githubAE | |
- uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
title: 🤖📯 Octokit webhooks changed | |
body: > | |
I found new changes on [GitHub’s Webhooks Event Types & | |
Payloads](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads) | |
and want to let you know about it 👋🤖 | |
I can't tell if the changes are fixes, features or breaking changes. | |
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/webhooks/blob/main/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version). | |
If there are any new events added, follow the [steps | |
outlined](https://github.com/octokit/webhooks/blob/main/CONTRIBUTING.md#creating-a-new-schema) | |
in order to create the required schemas. | |
If there were only description updates, or new properties added, | |
simply modify the appropriate schemas and commit them to this PR. | |
Don't forget to generate the types as well. | |
branch: webhooks-update | |
author: Octokit Bot <[email protected]> | |
path: cache/ | |
commit-message: "build: cache" | |
labels: "Type: Maintenance" | |
- name: update .com webhooks | |
uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
branch: webhooks-update | |
author: Octokit Bot <[email protected]> | |
path: payload-examples/api.github.com/ | |
commit-message: "WIP: api.github.com webhooks update" | |
- name: update GHE webhooks | |
uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
branch: webhooks-update | |
author: Octokit Bot <[email protected]> | |
path: payload-examples/ghes* | |
commit-message: "WIP: GHE webhooks update" | |
- name: update GitHub.AE webhooks | |
uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
branch: webhooks-update | |
author: Octokit Bot <[email protected]> | |
path: payload-examples/github.ae/ | |
commit-message: "WIP: GitHub.AE webhooks update" |