Skip to content

Commit 07dc082

Browse files
authored
Update setup-new-repo.yml
1 parent 7feff4a commit 07dc082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
170170
echo "Assigning permissions to CODEOWNERS_TEAM: [$CODEOWNERS_TEAM]"
171171
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
172-
-X PUT -H "Accept: application/vnd.github+json" -f permission=write --verbose || \
172+
-X PUT -H "Accept: application/vnd.github+json" -f permission=push || \
173173
echo "::error::Failed to set permissions for $CODEOWNERS_TEAM. Please check team and repository availability."
174174
else
175175
echo "::error::Team $CODEOWNERS_TEAM does not exist. Cannot assign permissions."

0 commit comments

Comments
 (0)