From 01f4653b987703294e10db9276b41e8c55c2ff17 Mon Sep 17 00:00:00 2001 From: rg2011 Date: Mon, 20 Jan 2020 09:51:20 +0100 Subject: [PATCH] modificada accion para usar numero de version sin 'v' --- .github/workflows/maven.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e7cd7b1..acf99d5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -20,7 +20,7 @@ name: Maven Build on: push: tags: - - 'v*' + - '[0-9]+.[0-9]+.[0-9]+' jobs: build: @@ -54,7 +54,7 @@ jobs: # Get tag name. strip the initial "v" - name: Get Version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # Upload compiled jar to the release - name: Upload Asset diff --git a/README.md b/README.md index 107abfc..9c8b0b1 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ Este proyecto utiliza [Github Actions](https://github.com/features/actions) para - Crear un tag git con el número de versión ```bash -git tag -a vA.B.C -m "Versión A.B.C" +git tag -a A.B.C -m "Versión A.B.C" git push --tags ``` -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. +El número de versión y el nombre del tag deben coincidir, para que la accion automática se complete con éxito.