Skip to content

Commit befce9f

Browse files
ci: change permission to write to open PRs (#12)
* ci: change permission to write to open PRs * ci: change github action permissions to enable PR creation * add additional if check
1 parent 9034ba8 commit befce9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ env:
1313

1414
jobs:
1515
version:
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'openai' }}
1717
timeout-minutes: 15
1818
runs-on: ubuntu-latest
1919
permissions:
20-
contents: read
20+
contents: write
21+
pull-requests: write
2122
id-token: write
2223
steps:
2324
- name: Checkout code repository

0 commit comments

Comments
 (0)