Skip to content

Commit

Permalink
Ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Mar 22, 2024
1 parent 518d43f commit be56597
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/new_team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: Create teams and assign permissions
env:
GH_TOKEN: ${{ secrets.GH_FINE_GRANTED_PAT }}
run: >-
new_team=$(gh api -X POST /orgs/django-community/teams -f name=${{ inputs.base-team-name }} -f description='People who have access to the base team.' -f privacy='closed')
echo $new_team
TEAM_ID=$(echo $new_team | jq '.id')
run: |
TEAM_ID=$(gh api -X POST /orgs/django-community/teams -f name='${{ inputs.base-team-name }}-committers' -f description='People who have the ability to commit and maintain the project.' -f privacy='closed' | jq '.id' | tr -d '"')
echo $TEAM_ID
gh api -X POST /orgs/django-community/teams -f name="${{ inputs.base-team-name }}-committers" -f description='People who have the ability to commit and maintain the project.' -f privacy='closed' -F parent_team_id="$TEAM_ID"
gh api -X POST /orgs/django-community/teams -f name="${{ inputs.base-team-name }}-committers" -f description='People who have the ability to commit and maintain the project.' -f privacy='closed' -F parent_team_id=$TEAM_ID
gh api -X POST /orgs/django-community/teams -f name="${{ inputs.base-team-name }}-maintainers" -f description='People who administrate the project.' -f privacy='closed' -F parent_team_id=$TEAM_ID
Expand Down

0 comments on commit be56597

Please sign in to comment.