Closed amtoine closed 9 months ago
github.ref would give something like refs/pull/xxx/merge whereas github.base_ref would give nightly or main depending on the target branch.
github.ref
refs/pull/xxx/merge
github.base_ref
nightly
main
see the doc GITHUB_BASE_REF 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.
see the doc
GITHUB_BASE_REF 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.
GITHUB_BASE_REF
pull_request
pull_request_target
github.ref
would give something likerefs/pull/xxx/merge
whereasgithub.base_ref
would givenightly
ormain
depending on the target branch.