Skip to content

Commit fdc5e8a

Browse files
committed
ci: enable description, bumping version
1 parent b577d71 commit fdc5e8a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/initialize.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-template"
3-
version = "0.1.0"
3+
version = "0.2.1"
44
description = "A template for python projects"
55
authors = ["Loïc Motheu <lmotheu@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)