Skip to content

Commit 38e9d23

Browse files
committed
fix: resolve early access workflow issues for RC versions (#625)
- Update early-access workflow to handle Release Candidate (RC) versions - Change version check from SNAPSHOT-only to include RC versions - Configure JReleaser to mark RC and SNAPSHOT versions as prereleases - Fix workflow conditional to use EARLY_ACCESS flag instead of SNAPSHOT
1 parent 814bbcf commit 38e9d23

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/early-access.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ jobs:
5858
run: |
5959
VERSION=$(grep '^version\s*=\s*' gradle.properties | cut -d'=' -f2 | xargs)
6060
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
61-
if [[ "$VERSION" == *-SNAPSHOT ]]; then
62-
echo "SNAPSHOT=true" >> "$GITHUB_OUTPUT"
61+
# Check if version is a SNAPSHOT or Release Candidate (early access)
62+
if [[ "$VERSION" == *-SNAPSHOT ]] || [[ "$VERSION" == *-RC* ]]; then
63+
echo "EARLY_ACCESS=true" >> "$GITHUB_OUTPUT"
6364
else
64-
echo "SNAPSHOT=false" >> "$GITHUB_OUTPUT"
65+
echo "EARLY_ACCESS=false" >> "$GITHUB_OUTPUT"
6566
fi
6667
6768
- name: Release
68-
if: ${{ steps.vars.outputs.SNAPSHOT }}
69+
if: ${{ steps.vars.outputs.EARLY_ACCESS == 'true' }}
6970
uses: jreleaser/release-action@v2
7071
with:
7172
arguments: release

jreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ release:
2323
name: redis-om-spring
2424
overwrite: true
2525
sign: true
26+
prerelease:
27+
enabled: auto
28+
pattern: .*-(?:SNAPSHOT|RC\d+).*
2629
changelog:
2730
formatted: ALWAYS
2831
preset: conventional-commits

0 commit comments

Comments
 (0)