File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,9 +157,9 @@ jobs:
157157 - name : Set team permissions
158158 run : |
159159 if gh api orgs/$OWNER/teams > /dev/null 2>&1; then
160- gh api orgs/$OWNER/teams/$MAINTAINERS_TEAM/repos/$OWNER/$REPO_NAME -f permission=triage
161- gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME -f permission=write
162- gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME -f permission=maintain
160+ gh api orgs/$OWNER/teams/$MAINTAINERS_TEAM/repos/$OWNER/$REPO_NAME -X PUT - f permission=triage
161+ gh api orgs/$OWNER/teams/$CODEOWNERS_TEAM/repos/$OWNER/$REPO_NAME -X PUT - f permission=write
162+ gh api orgs/$OWNER/teams/admins/repos/$OWNER/$REPO_NAME -X PUT - f permission=maintain
163163 else
164164 echo "Skipping team permission assignment — not running in an organization."
165165 fi
You can’t perform that action at this time.
0 commit comments