Skip to content

Commit 21fbced

Browse files
authored
Update setup-new-repo.yml
1 parent 409384c commit 21fbced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ jobs:
165165
echo "::error::Team $MAINTAINERS_TEAM does not exist. Cannot assign permissions."
166166
exit 1
167167
fi
168+
168169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
169170
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
170171
-X PUT -H "Accept: application/vnd.github+json" -f permission=write || \
@@ -173,6 +174,7 @@ jobs:
173174
echo "::error::Team $CODEOWNERS_TEAM does not exist. Cannot assign permissions."
174175
exit 1
175176
fi
177+
176178
gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME \
177179
-X PUT -H "Accept: application/vnd.github+json" -f permission=maintain || \
178180
echo "::error::Failed to set permissions for admin team. Please check team and repository availability."

0 commit comments

Comments
 (0)