question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong documentation for v1.1

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Hecsallcommented, Jun 18, 2021

@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 the master version you can omit that parameter, see examples below:

Using v1.1

- name: Make envfile
      uses: SpicyPizza/create-envfile@v1.1
      with:
        envkey_SOME_VARIABLE: "test"
        directory: somedirectory
        github_workspace: ${{ github.workspace }} # <-- this is needed in v.1.1

Using master

- name: Make envfile
      uses: SpicyPizza/create-envfile@master
      with:
        envkey_SOME_VARIABLE: "test"
        directory: somedirectory
        # here in master the github_workspace is not needed anymore

Now it should be clearer

0reactions
AngelOnFiracommented, Feb 15, 2022

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 😃

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found