File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - name : Set Repository Name and Description
1717 run : |
1818 REPO_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2)
19- REPO_DESC="${{ github.event.repository.description }}" # Get the description
20- VERSION="0.0.1" # Set a default version
19+ REPO_DESC="${{ github.event.repository.description }}"
20+ VERSION="0.0.1"
2121
2222 # Update the pyproject.toml with the repository name and description
2323 sed -i "s/^name = .*/name = \"$REPO_NAME\"/" pyproject.toml
2929 git config --local user.email "action@github.com"
3030 git config --local user.name "GitHub Action"
3131 git add pyproject.toml
32- git commit -m "Initialize repository with correct pyproject.toml"
33- git push
32+ git commit -m "chore: initialize repository"
33+
34+ # Push to main
35+ git push origin main
36+
37+ # Create develop branch if it doesn't exist and push
38+ git checkout -B develop
39+ git push origin develop --force
3440 env :
3541 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " python-template"
3- version = " 0.0.1 "
4- description = " Used to templatize python projects. "
3+ version = " 0.2.3 "
4+ description = " A template for python projects"
55authors = [" Loïc Motheu <lmotheu@gmail.com>" ]
66readme = " README.md"
77package-mode = false
You can’t perform that action at this time.
0 commit comments