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

Populate RepositoryBranch when building #2

Closed
kzu opened this issue Dec 17, 2020 · 0 comments
Closed

Populate RepositoryBranch when building #2

kzu opened this issue Dec 17, 2020 · 0 comments

Comments

@kzu
Copy link
Member

kzu commented Dec 17, 2020

Since RepositoryBranch isn't populated by SourceLink, we should pass it in from the build scripts.

This is as trivial as -p:RepositoryBranch=${GITHUB_REF#refs/*/}

@kzu kzu closed this as completed in e6a51e4 Dec 17, 2020
kzu added a commit to devlooped/GitInfo that referenced this issue 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.
kzu added a commit to devlooped/GitInfo that referenced this issue 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant