mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 20:23:50 +08:00
Updated README.md
This commit is contained in:
parent
d2fb4cabad
commit
0bd39cdb26
@ -10,13 +10,12 @@
|
|||||||
|
|
||||||
Get branch or tag information without the `/ref/*` prefix
|
Get branch or tag information without the `/ref/*` prefix
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## 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 "v" prefix (e.g. `'refs/tags/v1.0.0'` -> `'v1.0.0'` OR `'1.0.0'`)
|
|
||||||
- Detect actions triggered by non default branches
|
|
||||||
- Detect actions triggered by the default branch
|
|
||||||
|
|
||||||
|
* Retrieve the current branch name without any prefix. (e.g. `'refs/heads/main'` -> `'main'`)
|
||||||
|
* Retrieve the current tag with an option to strip the "v" prefix (e.g. `'refs/tags/v1.0.0'` -> `'v1.0.0'` OR `'1.0.0'`)
|
||||||
|
* Detect actions triggered by non default branches
|
||||||
|
* Detect actions triggered by the default branch
|
||||||
|
|
||||||
## Supported Platforms
|
## Supported Platforms
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user