Skip to content

use github.base_ref to get the target branch in the CI#139

Merged
amtoine merged 1 commit intomainfrom
fix-nightly-ci
Dec 15, 2023
Merged

use github.base_ref to get the target branch in the CI#139
amtoine merged 1 commit intomainfrom
fix-nightly-ci

Conversation

@amtoine
Copy link
Copy Markdown
Owner

@amtoine amtoine commented Dec 15, 2023

github.ref would give something like refs/pull/xxx/merge whereas github.base_ref would give nightly or main depending on the target branch.

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.

@amtoine amtoine added ci Something related to the Continuous Integration fix A fix for a bug labels Dec 15, 2023
@amtoine amtoine merged commit 9118490 into main Dec 15, 2023
@amtoine amtoine deleted the fix-nightly-ci branch December 15, 2023 12:17
amtoine added a commit that referenced this pull request Dec 15, 2023
this will bring the new fixed CI from #139.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Something related to the Continuous Integration fix A fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant