Skip to content

Update

Update #33847

Workflow file for this run

"on":
schedule:
- cron: 0 */12 * * *
repository_dispatch:
types:
- github-webhooks-update
name: Update
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 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/create-or-update-pull-request-action@v1.x
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 <octokitbot@martynus.net>
path: cache/
commit-message: "build: cache"
labels: "Type: Maintenance"
- name: update .com webhooks
uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
with:
branch: webhooks-update
author: Octokit Bot <octokitbot@martynus.net>
path: payload-examples/api.github.com/
commit-message: "WIP: api.github.com webhooks update"
- name: update GHE webhooks
uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
with:
branch: webhooks-update
author: Octokit Bot <octokitbot@martynus.net>
path: payload-examples/ghes*
commit-message: "WIP: GHE webhooks update"
- name: update GitHub.AE webhooks
uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
with:
branch: webhooks-update
author: Octokit Bot <octokitbot@martynus.net>
path: payload-examples/github.ae/
commit-message: "WIP: GitHub.AE webhooks update"