We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feff4a commit 07dc082Copy full SHA for 07dc082
1 file changed
.github/workflows/setup-new-repo.yml
@@ -169,7 +169,7 @@ jobs:
169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
170
echo "Assigning permissions to CODEOWNERS_TEAM: [$CODEOWNERS_TEAM]"
171
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
172
- -X PUT -H "Accept: application/vnd.github+json" -f permission=write --verbose || \
+ -X PUT -H "Accept: application/vnd.github+json" -f permission=push || \
173
echo "::error::Failed to set permissions for $CODEOWNERS_TEAM. Please check team and repository availability."
174
else
175
echo "::error::Team $CODEOWNERS_TEAM does not exist. Cannot assign permissions."
0 commit comments