How do I get the previous commit hash at gitlab-ci.yml?

How do I get the previous commit hash at gitlab-runner?

Edited Jul 09, 2019 by opensource
Assignee Loading
Time tracking Loading