File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ jobs:
1313 - name : Checkout code
1414 uses : actions/checkout@v4
1515
16- - name : Set Repository Name
16+ - name : Set Repository Name and Description
1717 run : |
1818 REPO_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2)
19- VERSION="0.1.0"
19+ REPO_DESC="${{ github.event.repository.description }}" # Get the description
20+ VERSION="0.0.1" # Set a default version
2021
21- # Update the pyproject.toml with the repository name
22+ # Update the pyproject.toml with the repository name and description
2223 sed -i "s/^name = .*/name = \"$REPO_NAME\"/" pyproject.toml
24+ sed -i "s/^description = .*/description = \"$REPO_DESC\"/" pyproject.toml
2325 sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
2426
2527 - name : Commit changes
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " python-template"
3- version = " 0.1.0 "
3+ version = " 0.2.1 "
44description = " A template for python projects"
55authors = [" Loïc Motheu <lmotheu@gmail.com>" ]
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments