Skip to content

Commit 788c8a8

Browse files
committed
ci(update): fix if step conditions
1 parent e0aeeb8 commit 788c8a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# if update is coming from octokit/openapi, use the version from event
2828
- 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'
3030
env:
3131
VERSION: ${{ github.event.client_payload.release.tag_name }}
3232

@@ -38,12 +38,12 @@ jobs:
3838

3939
# if event is coming from octokit/types.ts, update @octokit/types to latest version and get OpenAPI version from its package.json
4040
- 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'
4242
- 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'
4444
id: openapi_types
4545
- 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'
4747
env:
4848
VERSION: ${{ steps.openapi_types.outputs.version }}
4949

0 commit comments

Comments
 (0)