mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-11 20:34:24 +03:00
Fix hardcoded paths
This commit is contained in:
parent
bddd16572d
commit
8f249ab24d
|
@ -40,7 +40,7 @@ jobs:
|
|||
run: |
|
||||
BUMPED_VERSION="{% raw %}${{ steps.bumped_version.outputs.version }}{% endraw %}"
|
||||
# Find and replace anything that matches `__version__ = "x.x.x"`
|
||||
sed -i 's/\(^__version__ = \)"[^"]*"/__version__ = "'"${BUMPED_VERSION}"'"/' gebi/__init__.py
|
||||
sed -i 's/\(^__version__ = \)"[^"]*"/__version__ = "'"${BUMPED_VERSION}"'"/' {{cookiecutter.project_slug}}/__init__.py
|
||||
|
||||
- name: "Commit changes"
|
||||
run: |
|
||||
|
@ -49,7 +49,7 @@ jobs:
|
|||
|
||||
git config --global user.name "GitHub Actions"
|
||||
git config --global user.email "devops@github.com"
|
||||
git add gebi/__init__.py
|
||||
git add {{cookiecutter.project_slug}}/__init__.py
|
||||
git commit -m "Bump version from v${CURRENT_VERSION} to v${BUMPED_VERSION}"
|
||||
git push origin main
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ services:
|
|||
<<: *django
|
||||
profiles:
|
||||
- interpreter
|
||||
container_name: gebi_local_interpreter
|
||||
container_name: {{cookiecutter.project_slug}}_local_interpreter
|
||||
ports: []
|
||||
|
||||
postgres:
|
||||
|
|
Loading…
Reference in New Issue
Block a user