Skip to content

Commit ed3f661

Browse files
committed
Add codeowner as admin to new repo
1 parent dff029d commit ed3f661

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/makenew.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ jobs:
2828
steps:
2929
- name: Create repository
3030
run: |
31+
gh extension install mislav/gh-repo-collab
3132
gh repo create --internal --disable-wiki --description "$DESCRIPTION" $REPO
3233
gh repo edit $REPO --delete-branch-on-merge
3334
gh repo edit $REPO --enable-projects=false
35+
gh repo-collab add $REPO $CODEOWNER --permission admin
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
38+
CODEOWNER: ${{ github.event.inputs.codeowner }}
3639
REPO: seamapi/${{ github.event.inputs.repo }}
3740
DESCRIPTION: ${{ github.event.inputs.description }}
3841
bootstrap:

0 commit comments

Comments
 (0)