add-and-commit icon indicating copy to clipboard operation
add-and-commit copied to clipboard

Warning: There are environment variables missing from this runtime, but would be present on GitHub

Open justanotheranonymoususer opened this issue 2 years ago • 5 comments

I'm not sure what I did wrong or maybe a bug. Also I can't share the project but let me know if you need more info, I believe the usage is rather standard.

      - name: Commit
        uses: EndBug/add-and-commit@v9
        with:
          cwd: generated
          default_author: github_actions
          message: 'Update generated files'
          fetch: false

Output:

Run EndBug/add-and-commit@v9
  with:
    cwd: generated
    default_author: github_actions
    message Update generated files
    fetch: false
    add: .
    pathspec_error_handling: ignore
    push: true
    github_token: ***
Warning: There are environment variables missing from this runtime, but would be present on GitHub.
- HOME

image

Hi, it seems that this is a warning from https://github.com/JasonEtco/actions-toolkit, a library I'm using.

It seems like the HOME environment variable is missing, are you using a custom runner?

EndBug avatar Jul 05 '23 18:07 EndBug

I'm using windows-latest, perhaps that's why, it's not Linux.

On Wed, Jul 5, 2023, 21:55 Federico Grandi @.***> wrote:

Hi, it seems that this is a warning from https://github.com/JasonEtco/actions-toolkit, a library I'm using.

It seems like the HOME environment variable is missing, are you using a custom runner?

— Reply to this email directly, view it on GitHub https://github.com/EndBug/add-and-commit/issues/516#issuecomment-1622300928, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMDRPHTMOONF2XDFLGNECLXOW2DJANCNFSM6AAAAAAZ7BPFD4 . You are receiving this because you authored the thread.Message ID: @.***>

Alright, I've opened an issue in the toolkit repo 👍🏻 https://github.com/JasonEtco/actions-toolkit/issues/160

Thanks for reporting that! @all-contributors please add @justanotheranonymoususer for their bug report

EndBug avatar Jul 06 '23 08:07 EndBug

@EndBug

I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.

I've put up a pull request to add @justanotheranonymoususer! :tada:

allcontributors[bot] avatar Jul 06 '23 08:07 allcontributors[bot]