Skip to content

Commit 7ea01c7

Browse files
authored
Merge pull request #2 from WISE-Developers/release-notes-tag-1
Add from tag back into release notes generator
2 parents 6a27077 + fa4ef90 commit 7ea01c7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
1618
- uses: actions/checkout@v3
1719
with:
18-
repository: WISE-Developers/versions
20+
repository: WISE-Developers/WISE_Versions
1921
path: versions
2022
token: ${{ secrets.WISE_PAT }}
2123
- name: Set up JDK 8
@@ -30,8 +32,8 @@ jobs:
3032
shell: pwsh
3133
run: |
3234
$versions = ConvertFrom-StringData (Get-Content versions/versions.properties -raw)
33-
echo "Updating to version $($versions.prometheus)"
34-
echo "prometheus_version=$($versions.prometheus)" >> $env:GITHUB_OUTPUT
35+
echo "Updating to version $($versions.wise)"
36+
echo "prometheus_version=$($versions.wise)" >> $env:GITHUB_OUTPUT
3537
3638
- name: Update the version
3739
run: mvn versions:set -DnewVersion=${{ steps.version-numbers.outputs.prometheus_version }}
@@ -49,6 +51,8 @@ jobs:
4951
run: |
5052
git config user.name github-actions
5153
git config user.email github-actions@github.com
54+
LAST_TAG=$(git describe --abbrev=0 --tags)
55+
echo "last_tag=$LAST_TAG" >> $GITHUB_OUTPUT
5256
git tag -a ${{ steps.version-numbers.outputs.prometheus_version }} -m "Release on $(date +'%Y-%m-%d') for commit $(git rev-parse HEAD)"
5357
5458
- name: Push changes
@@ -63,7 +67,7 @@ jobs:
6367
owner: WISE-Developers
6468
repo: WISE_Java_API
6569
toTag: ${{ steps.version-numbers.outputs.prometheus_version }}
66-
# fromTag: ${{ steps.last-tags.outputs.last_tag }}
70+
fromTag: ${{ steps.last-tags.outputs.last_tag }}
6771
env:
6872
GITHUB_TOKEN: ${{ secrets.WISE_PAT }}
6973

0 commit comments

Comments
 (0)