Skip to content
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

fatal error when using @v4.2 #28

Closed
TobyHFerguson opened this issue Apr 29, 2021 · 3 comments
Closed

fatal error when using @v4.2 #28

TobyHFerguson opened this issue Apr 29, 2021 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@TobyHFerguson
Copy link

Describe the bug
I get the following:

Run tj-actions/changed-files@v4.2
Getting head sha...
fatal: ambiguous argument 'HEAD^1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Getting diff...
fatal: ambiguous argument 'HEAD^1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: Process completed with exit code 128.

To Reproduce
My template:

      - name: Get modified files using defaults
        id: changed-files
        uses: tj-actions/changed-files@v4.2

Expected behavior
That the system would get a list of changed files

Additional context
using ubuntu-latest

@TobyHFerguson TobyHFerguson added the bug Something isn't working label Apr 29, 2021
@TobyHFerguson
Copy link
Author

d'oh - this was because I hadn't included the fetch-depth: 0 in the checkout repo section. You might want to highlight this in the docs, for newbies like me!

@jackton1
Copy link
Member

Yeah definitely it's hidden in the example.

@jackton1 jackton1 changed the title fatal error when using @v.2 fatal error when using @v4.2 Apr 29, 2021
@jackton1
Copy link
Member

jackton1 commented Apr 29, 2021

@TobyHFerguson

Updated the https://github.com/tj-actions/changed-files#usage let me know if this needs to be improved Thanks.

@jackton1 jackton1 added the documentation Improvements or additions to documentation label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants