Replies: 1 comment 1 reply
-
Hi @42CrMo4 ! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was trying to get the Diff option working on my Github Workflow. But had a hard time figuring out why it was not working. In the end it was a small forgotten configuration setting on my side and had nothing to-do with Kibot. Nevertheless I thought I would share my findings here as this could occur to others too and therefore might help.
Sample Error Logs I was getting
Problem
Either the KIBOT_LAST-n command could not be resolved or the git checkout would fail. In hindsight it was the same problem.
Solution
I use the checkout@v3 action and in the default configuration it only fetches 1 commit. This will result in failing the lookup of any Tag/Hash/commit. As seen in the error logs.
To change this I had to add one line to the checkout@v3 step. See below the minimum example I used.
So adding the line
fetch-depth: '0'
which fetches all commits solved it. For full details on the behavior please see the checkout@v3 readmeI know for the most people this might be obvious but git and github workflows are not my profession :)
Beta Was this translation helpful? Give feedback.
All reactions