rtCamp / action-phpcs-code-review

Github Action to perform automated code review on pull requests
https://github.com/rtCamp/github-actions-library
MIT License
103 stars 27 forks source link

Can not use local Git repository, seems not to be in sync with current commit or does not exist #15

Closed AricStewart closed 5 years ago

AricStewart commented 5 years ago

Thank you for the first fix however my Pull Request are still not checking properly.

/usr/bin/docker run --name fbc64fa24dfa522dc449479a74b52baf86c0c9_1b1e6b --label fbc64f --workdir /github/workspace --rm -e GH_BOT_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/ffxiv_craft/ffxiv_craft":"/github/workspace" fbc64f:a24dfa522dc449479a74b52baf86c0c9 WordPress
Previous HEAD position was e2fdb18 Merge 80a0de42efa91d12448cde317a2449c48cce3bf8 into c80dbb8096fce87a71ded2b07637a8418dfdc1ad
COMMIT ID: 80a0de42efa91d12448cde317a2449c48cce3bf8
Switched to a new branch 'pr'
 _________________________________________
/ Running with the flag                   \
| --phpcs-standard=/home/rtbot/github-wor |
\ kspace/phpcs.xml                        /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Running the following command
/home/rtbot/vip-go-ci-tools/vip-go-ci/vip-go-ci.php --repo-owner=AricStewart --repo-name=ffxiv_craft --commit=e2fdb18c228bdcf88b38fb3f959dbb893102f35d --token=$GH_BOT_TOKEN --phpcs-path=/home/rtbot/vip-go-ci-tools/phpcs/bin/phpcs --local-git-repo=/home/rtbot/github-workspace --phpcs=true --phpcs-standard=/home/rtbot/github-workspace/phpcs.xml --lint=true
[ 2019-10-23T18:29:27+05:30 -- 0 ]  Initializing...; []
[ 2019-10-23T18:29:27+05:30 -- 0 ]  Can not use local Git repository, seems not to be in sync with current commit or does not exist; {
    "commit_id": "e2fdb18c228bdcf88b38fb3f959dbb893102f35d",
    "local_git_repo": "\/home\/rtbot\/github-workspace",
    "local_git_repo_head": "80a0de42efa91d12448cde317a2449c48cce3bf8"
}
##[error]Docker run failed with exit code 253
mrrobot47 commented 5 years ago

My bad. Forgot to add one change. Creating a fix PR.

mrrobot47 commented 5 years ago

Test this now. In case it fails again, re-open this issue to continue discussion.

AricStewart commented 5 years ago

Just worked perfectly! Thank you!