Hello,
I'm in the process of transitioning to sr.ht and I have a question
about builds and git.sr.ht.
When I hosted my code on GitHub, GITHUB_REF env variable could be used
to identify what branch is being built. But I cannot find the similar
for git.sr.ht.
I know I could parse this information from git log or git show-ref but
is there a recommended way to do it?
My use-case:
- all my changes on master branch are automatically deployed somewhere
- when I'm creating a new branch, I want the deployment to be ignored
With the branch parse the info from git show-ref is tricky because if
the branch was just creating, the commit is basically the same one
from master.
Thanks for help