Github variables

From UVOO Tech Wiki
Jump to navigation Jump to search
gihub.ref vs gihub.head_ref
Trigger event   pull_request    pull_request_target
gihub.ref   refs/pull/53/merge  refs/heads/main
gihub.head_ref  test/pull_request_target    test/pull_request_target
main: default branch
test/pull_request_target: topic branch name
53: pull request number