You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds support for [Semaphore’s internal ENV vars](http://ttps://docs.semaphoreci.com/ci-cd-environment/environment-variables/) used for specifying the current git branch and git sha.
To note: In the instance of a PR, the `SEMAPHORE_GIT_PR_BRANCH` variable has the expected branch name, whereas if code is being run against a branch directly (ie: `main`), `SEMAPHORE_GIT_BRANCH` is where it can be found.
Given how the `findVar` code works - `SEMAPHORE_GIT_BRANCH` will function as a fallback for `SEMAPHORE_GIT_PR_BRANCH`.
0 commit comments