Skip to content

Commit

Permalink
fix(typescript): .repos.uploadReleaseAsset() - name parameter is …
Browse files Browse the repository at this point in the history
…now required (#412)
  • Loading branch information
octokitbot authored Jul 23, 2021
1 parent 27dfddf commit 4c2bea5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:

# try checking out routes-update branch. Ignore error if it does not exist
- run: git checkout routes-update || true

# if event is coming from octokit/types.ts, update @octokit/types to latest version and get OpenAPI version from its package.json
# Do the npm install before `npm ci` to avoid ENOTEMPTY error, see:
# https://github.com/actions/setup-node/issues/303#issuecomment-885723049
- run: npm install @octokit/types@latest
if: github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'

- run: npm ci
- run: rm docs/ghe-*
- run: rm src/generated/ghe-*
Expand All @@ -41,9 +48,6 @@ jobs:
env:
VERSION: ${{ github.event.inputs.version }}

# if event is coming from octokit/types.ts, update @octokit/types to latest version and get OpenAPI version from its package.json
- run: npm install @octokit/types@latest
if: github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'
- run: node -e "console.log('::set-output name=version::' + require('@octokit/types/package').octokit['openapi-version'])"
if: github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'
id: openapi_types
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^6.21.0"
"@octokit/types": "^6.21.1"
},
"peerDependencies": {
"@octokit/core": ">=3"
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/ghe220-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -34439,7 +34439,7 @@
"description": "",
"in": "QUERY",
"type": "string",
"required": false,
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/ghe221-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -35470,7 +35470,7 @@
"description": "",
"in": "QUERY",
"type": "string",
"required": false,
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/ghe222-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -39221,7 +39221,7 @@
"description": "",
"in": "QUERY",
"type": "string",
"required": false,
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/ghe30-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -41455,7 +41455,7 @@
"description": "",
"in": "QUERY",
"type": "string",
"required": false,
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
Expand Down

0 comments on commit 4c2bea5

Please sign in to comment.