Skip to content

Commit a91488b

Browse files
authored
fix: verify correct permission names based on OpenAPI schema (#142)
BREAKING CHANGE: several permissions have been renamed to match GitHub's OpenAPI spec. It's really just a fix, but in order to avoid friction we decided to release a breaking change for this one.
1 parent 17bb45f commit a91488b

File tree

6 files changed

+23123
-6074
lines changed

6 files changed

+23123
-6074
lines changed

.github/workflows/update.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
schedule:
33
- cron: 0 9 * * *
44
workflow_dispatch: {}
5+
repository_dispatch:
6+
types:
7+
- octokit/openapi release
58
name: Update
69
jobs:
710
update:
@@ -13,6 +16,10 @@ jobs:
1316
cache: npm
1417
node-version: 16
1518
- run: npm ci
19+
- run: >-
20+
echo "OCTOKIT_OPENAPI_VERSION=${{
21+
github.event.client_payload.release.tag_name }}" >> $GITHUB_ENV
22+
if: github.event.client_payload.release.tag_name
1623
- name: update
1724
run: node scripts/update.mjs
1825
- run: git status

0 commit comments

Comments
 (0)