Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: define GIT_* variables when workflow resides in a git repo #823

Closed
ivotron opened this issue Apr 30, 2020 · 0 comments
Closed

cli: define GIT_* variables when workflow resides in a git repo #823

ivotron opened this issue Apr 30, 2020 · 0 comments

Comments

@ivotron
Copy link
Collaborator

ivotron commented Apr 30, 2020

When popper run is executed inside a repository (try to find a .git/ folder in $PWD and parent directories), define variables the following variables and make them available inside steps:

  • GIT_COMMIT
  • GIT_SHORT_SHA
  • GIT_BRANCH
@ivotron ivotron closed this as completed in b2de5fd May 7, 2020
ivotron added a commit that referenced this issue May 24, 2020
If the workspace directory does not reside within a git repository,
assign 'None' to PopperConfig.git_* properties. This in turns results in
not defining GIT_* environment variables at all when executing a
workflow.

fixes #823
ivotron added a commit that referenced this issue May 25, 2020
If the workspace directory does not reside within a git repository,
assign 'None' to PopperConfig.git_* properties. This in turns results in
not defining GIT_* environment variables at all when executing a
workflow.

fixes #823
ivotron added a commit that referenced this issue May 25, 2020
If the workspace directory does not reside within a git repository,
assign 'None' to PopperConfig.git_* properties. This in turns results in
not defining GIT_* environment variables at all when executing a
workflow.

fixes #823
ivotron added a commit that referenced this issue May 25, 2020
If the workspace directory does not reside within a git repository,
assign 'None' to PopperConfig.git_* properties. This in turns results in
not defining GIT_* environment variables at all when executing a
workflow.

fixes #823
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant