Skip to content

Commit 365c71c

Browse files
committed
clean and english on github action tag_release
1 parent 9fc8388 commit 365c71c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/tag_release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
tag:
10-
description: 'Tag de la release à déployer (ex: 2.3.0). Laisser vide pour utiliser le dernier tag disponible.'
10+
description: 'Release tag to deploy (e.g. 2.3.0). Leave empty to use the latest available tag.'
1111
required: false
1212
type: string
1313

@@ -43,10 +43,10 @@ jobs:
4343
RELEASE_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
4444
fi
4545
if [ -z "$RELEASE_TAG" ]; then
46-
echo "Aucun tag trouvé. Veuillez en spécifier un en entrée."
46+
echo "No tag found. Please specify one as input."
4747
exit 1
4848
fi
49-
echo "Tag utilisé : $RELEASE_TAG"
49+
echo "Tag used: $RELEASE_TAG"
5050
echo "release_tag=$RELEASE_TAG" >> $GITHUB_ENV
5151
5252
- name: Checkout tag "${{ env.release_tag }}"
@@ -59,17 +59,21 @@ jobs:
5959
uses: ffurrer2/extract-release-notes@v1
6060

6161
- name: Build project
62+
env:
63+
# the plugin maven-release-plugin uses the environment variable VERSIONING_GIT_REF to determine the version to use when building the project.
64+
# By setting this variable to refs/tags/${{ env.release_tag }}, we are telling the plugin to use the specified tag as the project version.
65+
VERSIONING_GIT_REF: refs/tags/${{ env.release_tag }}
6266
run: mvn -e -B clean package -DskipTests -Drevision=${{ env.release_tag }}
6367

6468
- name: Resolve JAR filename
6569
id: resolve_jar
6670
run: |
6771
JAR_FILE=$(ls target/creedengo-python-plugin-*.jar | grep -v original | head -n 1)
6872
if [ -z "$JAR_FILE" ]; then
69-
echo "Aucun JAR trouvé dans target/"
73+
echo "No JAR found in target/"
7074
exit 1
7175
fi
72-
echo "JAR trouvé : $JAR_FILE"
76+
echo "JAR found: $JAR_FILE"
7377
echo "jar_path=$JAR_FILE" >> $GITHUB_ENV
7478
7579
- name: Create release and upload asset

0 commit comments

Comments
 (0)