{"repo":"tj-actions/branch-names","free":true,"listed":false,"github":"https://github.com/tj-actions/branch-names","clone":"git clone https://github.com/tj-actions/branch-names.git","description":":octocat: Github action to retrieve branch or tag names with support for all events.","language":null,"stars":235,"topics":["github-actions","github","branch","branches","git-branch","github-actions-ci","github-branches","github-branch-test","branching","workflows"],"license":"MIT","category":"workflow-automation","readme_excerpt":"branch-names Get a branch or tag name without the /ref/ prefix. Table of Contents Features Usage Inputs Outputs Events push pull request tag Other supported events Possible usage with actions/checkout Credits Report Bugs Contributors ✨ Features Retrieve the current branch name without any prefix. (e.g. 'refs/heads/main' - 'main' ) Retrieve the current tag with an option to strip the prefix (e.g. v0.0.1 - v - 0.0.1 ) Detect actions triggered by non default branches Detect actions triggered by the default branch Supports all valid git branch names Usage If you feel generous and want to show some extra appreciation: Support this project with a :star: [![Buy me a coffee][buymeacoffee-shield]][buymeacoffee] [buymeacoffee]: https://www.buymeacoffee.com/jackton1 [buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom images/orange img.png Inputs Outputs OUTPUT TYPE DESCRIPTION --------------------------------------------------------------------------------- -------- ---------------------------------------------------------------------------------- base\\ ref\\ branch string The target branch of a pull request or tag e.g main current\\ branch string The current branch name regardless of event\\ type e.g main , feature/test default\\ branch string The default branch name e.g main OR master head\\ ref\\ branch string The source branch of a pull request e.g feature/test is\\ default string Returns \"true\" if the current branch is the default else \"false\" . is\\ tag string Returns \"t","default_branch":null,"files":null,"tree":[],"storefront":"/r/tj-actions","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tj-actions/branch-names/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}