-
What is the difference between fetch-depth and fetch_depth? fetch-depth is mentioned here: IMPORTANT: For push events when configuring actions/checkout the fetch-depth should be set to either fetch-depth: 0 OR fetch-depth: 2 depending on your use case; and is in the examples. However when used, an unrecognized error is given and the you are informed to use fetch_depth. fetch_depth is in the Input Table and is defaulted to 50. So which one are you supposed to use? Reference Issue: #1410 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The distinction between the checkout actionThis action checks-out your repository under
tj-actions/changed-filesUses either the local git repository or Github's REST API to check for changes that have occurred to files.
Questions
|
Beta Was this translation helpful? Give feedback.
The distinction between the
fetch-depth
passed to the checkout action and thefetch_depth
used by tj-actions/changed-files is as follows:checkout action
This action checks-out your repository under
$GITHUB_WORKSPACE
, so the tj-actions/changed-files workflow can access it.fetch-depth
: Indicates the number of commits to fetch.HEAD
HEAD^1
tj-actions/changed-files
Uses either the local git repository or Github's REST API to check for changes that have occurred to files.
fetch_depth
: Controls the number of additional commits that should be pulled when a…