Skip to content

Commit 00bf2cc

Browse files
authored
Update setup-new-repo.yml
1 parent 262b8f7 commit 00bf2cc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ jobs:
168168
169169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
170170
echo "Assigning permissions to CODEOWNERS_TEAM: [$CODEOWNERS_TEAM]"
171-
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM | jq || echo "::warning::Failed to retrieve CODEOWNERS_TEAM info"
172-
gh api orgs/$OWNER/teams | jq '.[] | select(.name | test("codeowners")) | {name, slug}' || echo "::warning::Could not locate CODEOWNERS_TEAM in list"
173171
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
174172
-X PUT -H "Accept: application/vnd.github+json" -f permission=write || \
175173
echo "::error::Failed to set permissions for $CODEOWNERS_TEAM. Please check team and repository availability."

0 commit comments

Comments
 (0)