trilom / file-changes-action

This action can be added, and you will get outputs of all of the files that have changed in your repository for you to use.
MIT License
167 stars 48 forks source link

Support for windows-latest build environment #112

Open jchenevarin opened 3 years ago

jchenevarin commented 3 years ago

Describe the bug Action in version 1.2.4 is giving the following error when used with windows-latest:

There was an issue writing output files.
Exception: {
  "error": "500/Error",
  "from": "writeFiles",
  "message": "There was an issue writing output files.",
  "payload": "{\"errno\":-4058,\"syscall\":\"open\",\"code\":\"ENOENT\",\"path\":\"undefined/files.json\"}"
}

Workflow This is our workfow setting:

- name: Changed files
        id: file_changes
        uses: trilom/file-changes-action@v1.2.4
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}
          output: ' '

Expected behavior It was working with ubuntu-latest and it should be working on windows or at least advertised as not working on windows-latest.

Additional context It seems that this is due to the use of the hardcoded process.env.HOME in the code ?

danielorihuela commented 3 years ago

I have exactly that same problem. It fails for windows-latest on version 1.2.3 and 1.2.4.

image

image