Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker_test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BX-Telegram
docker_test
Commits
fc1d7009
Commit
fc1d7009
authored
1 year ago
by
GianlucaOberreit
Committed by
Gianluca OBERREIT
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update committee_creation.yml
parent
d2e1e277
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/committee_creation.yml
+15
-15
15 additions, 15 deletions
.github/workflows/committee_creation.yml
with
15 additions
and
15 deletions
.github/workflows/committee_creation.yml
+
15
−
15
View file @
fc1d7009
...
...
@@ -11,6 +11,13 @@ jobs:
steps
:
-
name
:
Check out code
uses
:
actions/checkout@v3
-
name
:
Switch to New Branch
run
:
|
branch_name=${{ github.ref }}
git fetch origin $branch_name:$branch_name
git checkout $branch_name
shell
:
bash
-
name
:
Generate Committee File
run
:
|
...
...
@@ -19,11 +26,15 @@ jobs:
sed "s/class example/class $branch_name/g" src/Committees/example.py > "src/Committees/${branch_name}.py"
shell
:
bash
-
name
:
Switch to New Branch
-
name
:
Commit and Push Changes
run
:
|
branch_name=${{ github.ref }}
git fetch origin $branch_name:$branch_name
git checkout $branch_name
branch_name=${branch_name#refs/heads/comm/}
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add "path/to/subdirectory/${branch_name}.py"
git commit -m "Add ${branch_name}.py"
git push origin $branch_name
shell
:
bash
-
name
:
Create Committee Team
...
...
@@ -35,15 +46,4 @@ jobs:
curl -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"name":"'$branch_name'","privacy":"closed"}' \
https://api.github.com/orgs/YOUR_ORG/teams
-
name
:
Create Team
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
branch_name=${{ github.ref }}
branch_name=${branch_name#refs/heads/comm/}
curl -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"name":"'$branch_name'","privacy":"closed"}' \
https://api.github.com/orgs/YOUR_ORG/teams
https://api.github.com/orgs/Telegram-BX-Bot/teams
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment