Link to home
Start Free TrialLog in
Avatar of enthuguy
enthuguyFlag for Australia

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
ASKER CERTIFIED SOLUTION
Avatar of pepr
pepr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pepr
pepr

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.