enthuguy
asked on
Identify git commits in last 12 hours on linux environment
Hi,
As part of CICD workflow. Would like to have a step in the workflow. To see if there are any commit to the git repo since yesterday.
If not commits then, skip the whole pipeline
if there are commits, then continue with the CICD.
Could you suggest a best way to achieve this please
As part of CICD workflow. Would like to have a step in the workflow. To see if there are any commit to the git repo since yesterday.
If not commits then, skip the whole pipeline
if there are commits, then continue with the CICD.
Could you suggest a best way to achieve this please
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To add, the git log command should work also on bare repositories (usually in directories with the .git extension -- by convention). This may be important for your case.