[GH-ISSUE #258] act doesn't honor options for actions/checkout #179

Closed
opened 2026-03-01 21:40:57 +03:00 by kerem · 4 comments
Owner

Originally created by @mgerring on GitHub (May 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/258

I need to be able to set the depth input to at least 2 for actions/checkout in my workflow -- it's needed by another action further down in the workflow. But act doesn't seem to pick up the setting or act on it.

No matter what I set fetch-depth to I get this error:

::error::This appears to be a shallow clone of your project. To determine whether the project version has changed and a new tag needs to be created, you should set a `fetch-depth` of 2 or higher on `@actions/checkout`.

Originally created by @mgerring on GitHub (May 25, 2020). Original GitHub issue: https://github.com/nektos/act/issues/258 I need to be able to set the `depth` input to at least 2 for `actions/checkout` in my workflow -- it's needed by another action further down in the workflow. But `act` doesn't seem to pick up the setting or act on it. No matter what I set `fetch-depth` to I get this error: ```::error::This appears to be a shallow clone of your project. To determine whether the project version has changed and a new tag needs to be created, you should set a `fetch-depth` of 2 or higher on `@actions/checkout`.```
kerem 2026-03-01 21:40:57 +03:00
Author
Owner

@cplee commented on GitHub (May 26, 2020):

@mgerring - can you share the snippet of your workflow yaml with the checkout step?

<!-- gh-comment-id:634106967 --> @cplee commented on GitHub (May 26, 2020): @mgerring - can you share the snippet of your workflow yaml with the checkout step?
Author
Owner

@mgerring commented on GitHub (May 26, 2020):

steps:
    - name: Checkout repository
      uses: actions/checkout@v2
      with:
        fetch-depth: 2
<!-- gh-comment-id:634210337 --> @mgerring commented on GitHub (May 26, 2020): ``` steps: - name: Checkout repository uses: actions/checkout@v2 with: fetch-depth: 2 ```
Author
Owner

@github-actions[bot] commented on GitHub (Jul 26, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:663919634 --> @github-actions[bot] commented on GitHub (Jul 26, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@github-actions[bot] commented on GitHub (Sep 25, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:698654123 --> @github-actions[bot] commented on GitHub (Sep 25, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#179
No description provided.