GITHUB_BASE_REF

Constant GITHUB_BASE_REF 

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

The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, main.