Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions released-version output reports -SNAPSHOT version #761

Closed
tivoscappini opened this issue May 16, 2024 · 2 comments · Fixed by #783
Closed

GitHub Actions released-version output reports -SNAPSHOT version #761

tivoscappini opened this issue May 16, 2024 · 2 comments · Fixed by #783
Labels

Comments

@tivoscappini
Copy link

Using pl.allegro.tech.build.axion-release version "1.17.2" we found that the release task reports the wrong version in its GitHub Actions step output.

Here is a brief transcript of me reproducing this locally:

$./gradlew -q markNextVersion -Prelease.version=0.7.0
Creating next version marker tag: v0.7.0-alpha
Changes made to local repository only
$./gradlew -q currentVersion

Project version: 0.7.0-SNAPSHOT
$touch ../gh.out
$GITHUB_ACTIONS=1 GITHUB_OUTPUT=$PWD/../gh.out ./gradlew -q release
Looking for uncommitted changes.. 
Skipping ahead of remote check
Checking for snapshot versions.. 
Creating tag: v0.7.0
Changes made to local repository only
$./gradlew -q currentVersion

Project version: 0.7.0
$git describe --exact-match HEAD
v0.7.0
$cat ../gh.out 
released-version=0.7.0-SNAPSHOT
@bgalek
Copy link
Member

bgalek commented May 17, 2024

thx! seems like a bug

@bgalek
Copy link
Member

bgalek commented Aug 5, 2024

fixed! will be included in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants