Skip to content

Commit

Permalink
Store the previous release as a property in the parent
Browse files Browse the repository at this point in the history
Currently we only have the information about the current release name
but at some places the version of the previous one would be useful.

This adds a new property 'previousReleaseVersion' to contain the
necessary information and is updated by the prepare-release workflow.
  • Loading branch information
laeubi committed Nov 24, 2024
1 parent 5bddc6c commit 1c91748
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/prepareRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Store Current Version
id: get-current-release
run: |
mvn help:evaluate -Dexpression=releaseNumberSDK --quiet '-Doutput=releaseNumberSDK-value.txt'
streamVersion=$(<releaseNumberSDK-value.txt)
rm -f releaseNumberSDK-value.txt
echo "version=$(streamVersion)" >> $GITHUB_OUTPUT
- name: Update Main Versions
run: mvn -U -ntp -f eclipse-platform-parent org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${{ github.event.milestone.title }}.0-SNAPSHOT -Dmodules=../eclipse.platform.releng.prereqs.sdk
- name: Update Release Versions
run: mvn -ntp -f eclipse-platform-parent/pom.xml --non-recursive org.eclipse.tycho:tycho-versions-plugin:set-property -Dproperties=releaseVersion,releaseName -DnewReleaseName=${{ steps.get-release-name.outputs.name }} -DnewreleaseVersion=${{ github.event.milestone.title }}
run: mvn -ntp -f eclipse-platform-parent/pom.xml --non-recursive org.eclipse.tycho:tycho-versions-plugin:set-property -Dproperties=releaseVersion,releaseName,previousReleaseVersion -DnewPreviousReleaseVersion=${{ steps.get-current-release.outputs.version }} -DnewReleaseName=${{ steps.get-release-name.outputs.name }} -DnewreleaseVersion=${{ github.event.milestone.title }}
- name: Create Pull Request for Release ${{ github.event.milestone.title }}
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
Expand Down
1 change: 1 addition & 0 deletions eclipse-platform-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
-->
<releaseName>2025-03</releaseName>
<releaseVersion>4.35</releaseVersion>
<previousReleaseVersion>4.34</previousReleaseVersion>
<!--
The releaseNumbers below, for SDK and Platform, might be
thought of as the "marketing number" or "branding number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ buildId=${buildId}
# such as "4.5" instead of "4.5.0".
eclipseStream=${releaseNumberSDK}
# similar for previous release version
previousReleaseVersion=4.34RC2
previousReleaseVersion=${previousReleaseVersion}RC2

0 comments on commit 1c91748

Please sign in to comment.