nektos / act

Run your GitHub Actions locally 🚀
https://nektosact.com
MIT License
54.08k stars 1.35k forks source link

unable to find git repo #1546

Closed tornado404 closed 7 months ago

tornado404 commented 1 year ago

Discussed in https://github.com/nektos/act/discussions/1545

Originally posted by **tornado404** January 4, 2023 # error I got a error as following ``` [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] [DEBUG] evaluating expression 'always()' [pushImage/bimg] [DEBUG] expression 'always()' evaluated to 'true' [pushImage/bimg] ⭐ Run Pre Get tag info [pushImage/bimg] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [pushImage/bimg] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [pushImage/bimg] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [pushImage/bimg] [DEBUG] Extracting content to '/var/run/act' [pushImage/bimg] [DEBUG] run pre step for 'Get tag info' [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] ✅ Success - Pre Get tag info [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo [pushImage/bimg] ☁ git clone 'https://github.com/pr-mpt/actions-commit-hash' # ref=v2 [pushImage/bimg] [DEBUG] cloning https://github.com/pr-mpt/actions-commit-hash to /root/.cache/act/pr-mpt-actions-commit-hash@v2 [pushImage/bimg] Unable to resolve v2: unsupported object type [pushImage/bimg] Unable to resolve v2: unsupported object type [pushImage/bimg] [DEBUG] skipping post step for 'Build and push pfs-csi-plugin'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Build and push ***-server'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Login to DockerHub'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'get commit hash'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Get tag info'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Uploading assets'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Checkout code'; step was not executed [pushImage/bimg] [DEBUG] skipping post step for 'Install go'; step was not executed [pushImage/bimg] [DEBUG] Removed container: cddf11fec1344b5aa6bddddcafaac4eb4b86d4534b045e13f7ca88039a742524 [pushImage/bimg] [DEBUG] 🐳 docker volume rm act-pushImage-bimg [pushImage/bimg] [DEBUG] 🐳 docker volume rm act-pushImage-bimg-env [pushImage/bimg] 🏁 Job succeeded [pushImage/bimg] unable to get git repo: unable to find git repo [pushImage/bimg] unable to get git ref: unable to find git repo [pushImage/bimg] unable to get git revision: unable to find git repo Error: unsupported object type ``` # repeat error ``` cat>/home/tmp/release.json</home/tmp/my.secrets<
denizdogan commented 1 year ago

Did you figure it out? Having the same issue right now, very frustrating.

RobQuistNL commented 1 year ago

Same here

leitljaroslav commented 1 year ago

@tornado404 it happened to me when I had a subdirectory with .git directory in it