-
Notifications
You must be signed in to change notification settings - Fork 74
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
Feature: Give option to specify the directory where envfile will be created #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment about using os.path.join
src/create-envfile.py
Outdated
text_file.write(out_file) | ||
else: | ||
with open(f"/github/workspace/{directory}/{file_name}", "w") as text_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use os.path.join
src/create-envfile.py
Outdated
|
||
if "None" in directory: | ||
with open(f"/github/workspace/{file_name}", "w") as text_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use os.path.join
Also, can you squash changes? @sumit4613 |
fix env variable name use f-strings fix typing mistake update readme handles a case when user want to create env file at root update readme update readme and prepare to raise PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it took me so long to get around to the review. I noted a few things about the implementation.
README.md
Outdated
@@ -21,21 +21,24 @@ jobs: | |||
|
|||
steps: | |||
- name: Make envfile | |||
uses: SpicyPizza/create-envfile@v1 | |||
uses: SpicyPizza/create-envfile@master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@AngelOnFira I had updated this PR with all required changes. Please let me know if I had left anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 💯
Thanks for the work @sumit4613 😃 |
I'll try to create an updated release in the next few days |
This PR closes #4
Adds support to specify the directory where envfile will be created.
@AngelOnFira Please update this PR if any change is required.
Thanks!