Wrong documentation for v1.1
See original GitHub issueHello, I was trying to use version 1.1 of this action, and after a lot of failed attempts to make it work, I noticed that there is a required parameter that the example on the readme does not cover.
Inside the create-envfile.py
at line 18 there is:
path = str(os.environ.get("INPUT_GITHUB_WORKSPACE"))
So it expects the user to manually input the GitHub workspace variable. If missing, that line will throw an error because it tries to output the env file into None/directory/.env
.
To make it work it should be used like this:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1.1
with:
envkey_SOME_VARIABLE: "test"
directory: somedirectory
github_workspace: ${{ github.workspace }}
Also, in the master branch, the title in the readme should say SpicyPizza/create-envfile@master
(to use the master version) and not SpicyPizza/create-envfile@v1.1
, which leads to confusion since the usage is a little different.
Hope it helps
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
CMCDA v1.1 Schematic Incorrect · Issue #847 - GitHub
I have v1.1 of the board. It's a pretty valuable schematic, as it's one of only two ways to find a pinout of...
Read more >Nursing documentation: How to avoid the most common ...
Documenting subjective data; Not questioning incomprehensible orders; Using the wrong abbreviations; Entering information into the wrong chart. Take #1 above, ...
Read more >MEDICAL ERRORS IN NURSING: PREVENTING ...
The importance of proper documentation in nursing cannot be overstated. Failure to document a patient's condition, medications administered, ...
Read more >How to migrate API v1.1 - Twitter Developers
Can someone help me please. Getting error Code 410. The Twitter REST API v1 is no longer active. Please migrate to API v1.1....
Read more >HTTP/1.1: Status Code Definitions
The server is indicating that it is unable or unwilling to complete the request using the same major version as the client, as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@riboney I saw the commit on your project, maybe I should have written the issue better. The
github_workspace
parameter is only needed if you use the v1.1, instead if you use themaster
version you can omit that parameter, see examples below:Using v1.1
Using master
Now it should be clearer
I think this should be resolved properly on 1.3 that is about to come out, so I’m going to close this for now. I’m going to make the docs point to 1.3 specifically, so people should be fine to just use it as the latest.
Feel free to check that the tests cover this case. Also, if there is outstanding changes that should be made, feel free to re-open this issue 😃