Fix hardcoded paths

This commit is contained in:
Igor 2025-03-20 15:01:42 +01:00
parent bddd16572d
commit 8f249ab24d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: