Skip to content

Commit b9af89c

Browse files
committed
create tag with version value
1 parent 4fc80db commit b9af89c

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,15 @@ jobs:
101101
102102
create_Tag:
103103
needs: maven_Release
104-
runs-on: ubuntu-latest
104+
runs-on: windows-latest
105105
env:
106106
RELEASE_TAG: ""
107107
steps:
108108
- uses: actions/checkout@v2
109-
- name: Get version
109+
- name: Get Version
110110
run: .\scripts\getLatestVersion.ps1
111111
shell: pwsh
112112
- name: Create tag
113113
uses: rickstaa/[email protected]
114114
with:
115-
tag: $RELEASE_TAG
116-
115+
tag: ${{ env.RELEASE_TAG }}

.github/workflows/git-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Git Release
55
on:
66
push:
77
tags:
8-
- "v[0-9]+.[0-9]+.[0-9]+"
8+
- "[0-9]+.[0-9]+.[0-9]+"
99
workflow_dispatch:
1010

1111
jobs:

.github/workflows/gradle-build.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,4 @@ jobs:
4848
settings.gradle
4949
gradle.properties
5050
**/gradle/**
51-
Scripts/**
52-
getTag:
53-
runs-on: windows-latest
54-
env:
55-
RELEASE_TAG: ""
56-
steps:
57-
- uses: actions/checkout@v2
58-
- name: Get Version
59-
run: .\scripts\getLatestVersion.ps1
60-
shell: pwsh
61-
- name: Test Print
62-
run: echo "${{ env.RELEASE_TAG }}"
63-
51+
Scripts/**

scripts/getLatestVersion.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,4 @@ $patchVersion = $findVersions[2].Substring($versionIndex+2)
3030
$version = "$majorVersion.$minorVersion.$patchVersion"
3131

3232
#Set Enviornment variable for use to create tag
33-
echo "RELEASE_TAG=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
34-
#Update the VERSION_STRING env variable and inform the user
35-
#Write-Host "##vso[task.setVariable variable=VERSION_STRING]$($version)";
36-
#Write-Host "Updated the VERSION_STRING enviornment variable with the current Gradle.Properties, $version"
33+
echo "RELEASE_TAG=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append

0 commit comments

Comments
 (0)