GITHUB_HEAD_REF

Constant GITHUB_HEAD_REF 

Source
pub const GITHUB_HEAD_REF: &str = "GITHUB_HEAD_REF";
Expand description

The head ref or source branch of the pull request in a workflow run. This property is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, feature-branch-1.