File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }}
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
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
You can’t perform that action at this time.
0 commit comments