mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
Updated README.md
This commit is contained in:
parent
76d464633d
commit
fb0b29a48f
@ -58,10 +58,9 @@ on:
|
|||||||
|:-----------------:|:---------:|:--------:|:-----------------------:|
|
|:-----------------:|:---------:|:--------:|:-----------------------:|
|
||||||
| strip_tag_prefix | `string` | `''` | The tag prefix to strip <br> *i.e `v0.0.1` -> `v` -> `0.0.1`* |
|
| strip_tag_prefix | `string` | `''` | The tag prefix to strip <br> *i.e `v0.0.1` -> `v` -> `0.0.1`* |
|
||||||
|
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
- `push*`
|
* `push*`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
@ -94,7 +93,7 @@ on:
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- `pull_request*`
|
* `pull_request*`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
@ -126,7 +125,7 @@ on:
|
|||||||
# Outputs: "Running on branch: feature/test".
|
# Outputs: "Running on branch: feature/test".
|
||||||
```
|
```
|
||||||
|
|
||||||
- `tag*`
|
* `tag*`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
@ -153,7 +152,6 @@ on:
|
|||||||
# Outputs: "v0.0.1" OR "0.0.1"
|
# Outputs: "v0.0.1" OR "0.0.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Possible usage with [actions/checkout@v2](https://github.com/actions/checkout):
|
### Possible usage with [actions/checkout@v2](https://github.com/actions/checkout):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user