Skip to content

Commit 01f4653

Browse files
author
rg2011
committed
modificada accion para usar numero de version sin 'v'
1 parent 9b0dbed commit 01f4653

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Maven Build
2020
on:
2121
push:
2222
tags:
23-
- 'v*'
23+
- '[0-9]+.[0-9]+.[0-9]+'
2424

2525
jobs:
2626
build:
@@ -54,7 +54,7 @@ jobs:
5454
# Get tag name. strip the initial "v"
5555
- name: Get Version
5656
id: get_version
57-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
57+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
5858

5959
# Upload compiled jar to the release
6060
- name: Upload Asset

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Este proyecto utiliza [Github Actions](https://github.com/features/actions) para
3232
- Crear un tag git con el número de versión
3333

3434
```bash
35-
git tag -a vA.B.C -m "Versión A.B.C"
35+
git tag -a A.B.C -m "Versión A.B.C"
3636
git push --tags
3737
```
3838

39-
Nótese que el número de versión **lleva un prefijo "v" en el tag git, pero no en el pom.xml**. Esto es por prácticas comunes tanto en Maven como en Git.
39+
El número de versión y el nombre del tag deben coincidir, para que la accion automática se complete con éxito.

0 commit comments

Comments
 (0)