Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default GitBranch from CI env variables #365

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Set default GitBranch from CI env variables #365

merged 1 commit into from
Oct 29, 2024

Conversation

kzu
Copy link
Member

@kzu kzu commented Oct 29, 2024

Virtually all CI systems provide environment variables containing the branch from the underlying source control.

This is already in use in:
https://github.com/dotnet/reproducible-builds/pull/ devlooped/oss#2
devlooped/nugetizer#57
devlooped/ThisAssembly#69

We should also bring in the same defaults here. Hopefully this will one day be part of SourceLink.

Fixes #362

Virtually all CI systems provide environment variables containing the branch from the underlying source control.

This is already in use in:
https://github.com/dotnet/reproducible-builds/pull/
devlooped/oss#2
devlooped/nugetizer#57
devlooped/ThisAssembly#69

We should also bring in the same defaults here. Hopefully this will one day be part of SourceLink.
@kzu kzu enabled auto-merge (rebase) October 29, 2024 18:04
@kzu kzu merged commit 1e0e2f4 into main Oct 29, 2024
4 checks passed
@kzu kzu deleted the ci-gitbranch branch October 29, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Branch name always set to HEAD in Gitlab build
1 participant