Skip to content
Snippets Groups Projects
Unverified Commit bd59231a authored by GianlucaOberreit's avatar GianlucaOberreit Committed by GitHub
Browse files

Update committee_creation.yml

parent 4bc3a8fc
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,20 @@ jobs:
echo "Team ID: $team_id"
echo "team_id=$team_id" >> $GITHUB_OUTPUT
- name: Add Team to Repo
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
branch_name=${{ github.ref }}
branch_name=${branch_name#refs/heads/comm/}
team_id=${{ steps.create_team.outputs.team_id }}
response=$(curl -X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/BX-bot-ecosystem/Telegram-BX-Bot/teams/$team_id/repos/BX-bot-ecosystem/Telegram-BX-Bot
-d '{"permission": "push"}')
echo "Add Team to Repo Response: $response"
- name: Protect Branch
env:
GITHUB_TOKEN: ${{ secrets.ORG_ADMIN }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment