I am trying to run a Github Actions Workflow with Git Large File Storage set to True. But the task and the pipeline fails even though I have installed Git and Git LFS on the runner and they have been added to path as well.
Git and Git LFS Version
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
Error: Unable to locate executable file: git-lfs. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable
When I run the same without lfs:true, it is able to checkout the code successfully and I dont see any issue.
But when sudo apt-get install -y git git-lfs is added to a task, then it runs successfully as it doesnt complain about the path.
git lfs command added to a task
Could anyone please let me know how to resolve the issue without adding sudo apt-get install -y git git-lfs to a task and still make the task to pick up git and git-lfs path automatically?