ref property

String? ref

The branch or tag ref that triggered the workflow.

For example, refs/heads/feature-branch-1.

If neither a branch or tag is available for the event type, the variable will not exist.

Implementation

String? get ref => _env('GITHUB_REF');