Skip to content

Commit 0f7a731

Browse files
ci: fix release-doctor workflow (#238)
1 parent 33da9cf commit 0f7a731

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release-doctor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Release Doctor
22
on:
3-
pull_request:
3+
environment: publish
4+
push:
5+
branches:
6+
- master
47
workflow_dispatch:
58

69
jobs:
710
release_doctor:
811
name: release doctor
912
runs-on: ubuntu-latest
10-
if: github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next'
13+
if: github.repository == 'openai/openai-node' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1114

1215
steps:
1316
- uses: actions/checkout@v3

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Release
22
on:
33
push:
44
branches:
5-
- main
5+
- master
66

77
jobs:
88
release:
99
name: release
10-
if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-node'
10+
if: github.ref == 'refs/heads/master' && github.repository == 'openai/openai-node'
1111
runs-on: ubuntu-latest
1212
environment: publish
1313

0 commit comments

Comments
 (0)