Skip to content

Commit 827159c

Browse files
committed
Ensure prepare release works with split year/month
1 parent 5ff6774 commit 827159c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/prepareRelease.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
- id: get-release-name
2222
run: |
2323
name=$(echo ${{ github.event.milestone.due_on }} | cut -d- -f-2)
24-
echo "name=$name" >> $GITHUB_OUTPUT
24+
year=$(echo $name|cut -d- -f 1)
25+
month=$(echo $name|cut -d- -f 2)
26+
echo "year=$year" >> $GITHUB_OUTPUT
27+
echo "month=$month" >> $GITHUB_OUTPUT
2528
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2629
with:
2730
ref: master
@@ -34,7 +37,7 @@ jobs:
3437
- name: Update Main Versions
3538
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,../eclipse.platform.releng.tychoeclipsebuilder
3639
- name: Update Release Versions
37-
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 }}
40+
run: mvn -ntp -f eclipse-platform-parent/pom.xml --non-recursive org.eclipse.tycho:tycho-versions-plugin:set-property -Dproperties=releaseVersion,releaseYear,releaseMonth -DnewReleaseYear=${{ steps.get-release-name.outputs.year }} -DnewReleaseMonth=${{ steps.get-release-name.outputs.month }} -DnewReleaseVersion=${{ github.event.milestone.title }}
3841
- name: Create Pull Request for Release ${{ github.event.milestone.title }}
3942
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4043
with:

eclipse-platform-parent/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@
4646

4747
<!-- releaseYear is used in copyright statements, etc.-->
4848
<releaseYear>2025</releaseYear>
49+
<releaseMonth>06</releaseMonth>
4950
<!--
5051
releaseName should match the yearly "release train" name.
5152
For example, "Mars", "Mars.1", "Luna SR2", etc.
5253
It will show up in "about box",
5354
such as Version: Mars (4.5), for main features.
5455
See bug 328139.
5556
-->
56-
<releaseName>${releaseYear}-06</releaseName>
57+
<releaseName>${releaseYear}-${releaseMonth}</releaseName>
5758
<releaseVersion>4.36</releaseVersion>
5859
<!--
5960
The releaseNumbers below, for SDK and Platform, might be

0 commit comments

Comments
 (0)