GITHUB_REF_NAME

Constant GITHUB_REF_NAME 

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

The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, feature-branch-1.

For pull requests, the format is <pr_number>/merge.