mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-14 01:52:26 +03:00
Fix hardcoded paths
This commit is contained in:
parent
bddd16572d
commit
8f249ab24d
|
@ -40,7 +40,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
BUMPED_VERSION="{% raw %}${{ steps.bumped_version.outputs.version }}{% endraw %}"
|
BUMPED_VERSION="{% raw %}${{ steps.bumped_version.outputs.version }}{% endraw %}"
|
||||||
# Find and replace anything that matches `__version__ = "x.x.x"`
|
# 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"
|
- name: "Commit changes"
|
||||||
run: |
|
run: |
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
|
|
||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
git config --global user.email "devops@github.com"
|
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 commit -m "Bump version from v${CURRENT_VERSION} to v${BUMPED_VERSION}"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ services:
|
||||||
<<: *django
|
<<: *django
|
||||||
profiles:
|
profiles:
|
||||||
- interpreter
|
- interpreter
|
||||||
container_name: gebi_local_interpreter
|
container_name: {{cookiecutter.project_slug}}_local_interpreter
|
||||||
ports: []
|
ports: []
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user