File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
27
27
# if update is coming from octokit/openapi, use the version from event
28
28
- run : npm run update-endpoints
29
- if : github.event_name == 'repository_dispatch' && github.event.event_type == 'octokit/openapi release'
29
+ if : github.event_name == 'repository_dispatch' && github.event.action == 'octokit/openapi release'
30
30
env :
31
31
VERSION : ${{ github.event.client_payload.release.tag_name }}
32
32
@@ -38,12 +38,12 @@ jobs:
38
38
39
39
# if event is coming from octokit/types.ts, update @octokit/types to latest version and get OpenAPI version from its package.json
40
40
- run : npm install @octokit/types@latest
41
- if : github.event_name == 'repository_dispatch' && github.event.event_type == 'octokit/types.ts release'
41
+ if : github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'
42
42
- run : node -e "console.log('::set-output name=version::' + require('@octokit/types/package').octokit['openapi-version'])"
43
- if : github.event_name == 'repository_dispatch' && github.event.event_type == 'octokit/types.ts release'
43
+ if : github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'
44
44
id : openapi_types
45
45
- run : npm run update-endpoints
46
- if : github.event_name == 'repository_dispatch' && github.event.event_type == 'octokit/types.ts release'
46
+ if : github.event_name == 'repository_dispatch' && github.event.action == 'octokit/types.ts release'
47
47
env :
48
48
VERSION : ${{ steps.openapi_types.outputs.version }}
49
49
You can’t perform that action at this time.
0 commit comments