Update #1421
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 9 * * * | |
workflow_dispatch: {} | |
repository_dispatch: | |
types: | |
- octokit/openapi release | |
name: Update | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version: "lts/*" | |
- run: npm ci | |
- run: >- | |
echo "OCTOKIT_OPENAPI_VERSION=${{ | |
github.event.client_payload.release.tag_name }}" >> $GITHUB_ENV | |
if: github.event.client_payload.release.tag_name | |
- name: update | |
run: node scripts/update.mjs | |
- run: git status | |
- name: update cache | |
uses: gr2m/create-or-update-pull-request-action@v1.x | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
title: 🤖📯 App permissions changed | |
body: > | |
I found new changes on | |
https://docs.github.com/en/rest/reference/permissions-required-for-github-apps/ | |
and thought I'd let you know about it 👋🤖 | |
I can't tell if the changes include fixes, features, breaking | |
changes or just cache updates, 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 | |
author: Octokit Bot <octokitbot@martynus.net> | |
path: cache | |
commit-message: "build: cache" | |
labels: "Type: Maintenance" | |
- name: update generated app permissions | |
uses: gr2m/create-or-update-pull-request-action@v1.x | |
env: | |
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} | |
with: | |
branch: update | |
author: Octokit Bot <octokitbot@martynus.net> | |
path: generated/ | |
commit-message: "WIP: app permissions update" | |
labels: "Type: Maintenance" |