~sircmpwn/builds.sr.ht#207: 
ability for builds to know the name of the associated git branch

Perhaps via an environment variable such as $SRHT_GIT_BRANCH.

For example I want to know if this is master branch so that I can update a download page with uploaded binaries. Or if it's a non-master branch I want to create an alias from that branch name to a download link.

Here's how I do this with Azure Dev Pipelines today:

https://github.com/ziglang/zig/blob/9801a1df6a6a55bb98cb4141d7e8f7340f324de2/ci/azure/linux_script#L33

Status
RESOLVED IMPLEMENTED
Submitter
~andrewrk
Assigned to
No-one
Submitted
5 years ago
Updated
1 year, 5 months ago
Labels
No labels applied.

~sircmpwn REPORTED IMPLEMENTED 5 years ago

~nsotelo 1 year, 5 months ago

Is this still supported? It would be useful for setting up a review environment with a custom subdomain.

Register here or Log in to comment, or comment via email.