Skip to content

Commit

Permalink
fix: Use absolute path for venv in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang committed Apr 3, 2021
1 parent aac02b5 commit d4823b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -6,9 +6,9 @@ ENV PYTHONPATH /semantic-release
COPY . /semantic-release

RUN cd /semantic-release && \
python -m venv .venv && \
.venv/bin/pip install .
python -m venv /semantic-release/.venv && \
/semantic-release/.venv/bin/pip install .

RUN .venv/bin/python -m semantic_release.cli --help
RUN /semantic-release/.venv/bin/python -m semantic_release.cli --help

ENTRYPOINT ["/semantic-release/action.sh"]
2 changes: 1 addition & 1 deletion action.sh
Expand Up @@ -16,5 +16,5 @@ git config --global user.name "github-actions"
git config --global user.email "action@github.com"

# Run Semantic Release
../.venv/bin/python -m semantic_release publish -v DEBUG \
/semantic-release/.venv/bin/python -m semantic_release publish -v DEBUG \
-D commit_author="github-actions <action@github.com>"

0 comments on commit d4823b3

Please sign in to comment.