DEV Community

Discussion on: Get changed files in github actions

Collapse
 
aamir_khan_b329b86069b4fe profile image
Aamir Khan

I'm getting error as
Run echo "::set-output name=all::$(git diff --name-only --diff-filter=ACMRT 91d2a5a7769c5ba847074bf19683a938f9135ab7 a0827f508c826ff2e55274efa0d8b860b46398f9 | xargs)"

shell: /bin/bash -e {0}
error: Could not access '91d2a5a7769c5ba847074bf19683a938f9135ab7'
error: Could not access '91d2a5a7769c5ba847074bf19683a938f9135ab7'

Collapse
 
jorgesanchezgit profile image
JorgeSanchezGit

I had this same error and I resolved it by updating the git version. You need git version 2.something on your runner. If you are running centos7 then the yum repo gives you version 1.something so you will have to install git from source. See: computingforgeeks.com/how-to-insta...

Even if your runner isnt running centos7, the solution will likely be installing the latest version of git on the runner.