File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ jobs:
165
165
echo "::error::Team $MAINTAINERS_TEAM does not exist. Cannot assign permissions."
166
166
exit 1
167
167
fi
168
+
168
169
if gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM > /dev/null 2>&1; then
169
170
gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME \
170
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."
174
175
exit 1
175
176
fi
177
+
176
178
gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME \
177
179
-X PUT -H "Accept: application/vnd.github+json" -f permission=maintain || \
178
180
echo "::error::Failed to set permissions for admin team. Please check team and repository availability."
You can’t perform that action at this time.
0 commit comments