CI: Get the repository and branch name being built #25108
-
Is there a way to find the repository and branch name being built in my Github Actions CI? If you are familiar with travis, I am looking for the alternative to travis’ TRAVIS_REPO_SLUG environment variable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, @reikdas! Please consider this document from the official GitHub Actions documenation: It lists all the environment variables that are automatically created in the Workflow environment. Among the variables are:
and
Those should cover the cases you need. Please update the discussion to let readers know how you fared with this information. Best, ManagedKaos |
Beta Was this translation helpful? Give feedback.
Hello, @reikdas! Please consider this document from the official GitHub Actions documenation:
Using environment variables
It lists all the environment variables that are automatically created in the Workflow environment.
Among the variables are:
and
Those should cover the cases you need.
Please update the discussion to let readers know how you fared with this information.
Best,
ManagedKaos