We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 409384c commit 21fbcedCopy full SHA for 21fbced
1 file changed
.github/workflows/setup-new-repo.yml
@@ -165,6 +165,7 @@ jobs:
165
echo "::error::Team $MAINTAINERS_TEAM does not exist. Cannot assign permissions."
166
exit 1
167
fi
168
+
169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
170
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
171
-X PUT -H "Accept: application/vnd.github+json" -f permission=write || \
@@ -173,6 +174,7 @@ jobs:
173
174
echo "::error::Team $CODEOWNERS_TEAM does not exist. Cannot assign permissions."
175
176
177
178
gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME \
179
-X PUT -H "Accept: application/vnd.github+json" -f permission=maintain || \
180
echo "::error::Failed to set permissions for admin team. Please check team and repository availability."
0 commit comments