Skip to content

Commit b01eeb0

Browse files
authored
Update setup-new-repo.yml
1 parent ffb2d7c commit b01eeb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/setup-new-repo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ jobs:
157157
- name: Set team permissions
158158
run: |
159159
if gh api orgs/$OWNER/teams > /dev/null 2>&1; then
160-
gh api orgs/$OWNER/teams/$MAINTAINERS_TEAM/repos/$OWNER/$REPO_NAME -f permission=triage
161-
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME -f permission=write
162-
gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME -f permission=maintain
160+
gh api orgs/$OWNER/teams/$MAINTAINERS_TEAM/repos/$OWNER/$REPO_NAME -X PUT -f permission=triage
161+
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME -X PUT -f permission=write
162+
gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME -X PUT -f permission=maintain
163163
else
164164
echo "Skipping team permission assignment — not running in an organization."
165165
fi

0 commit comments

Comments
 (0)