Skip to content

Commit 176c1e2

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Add explanation for "Get current version" step in release workflow
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 2aade81 commit 176c1e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
git config user.email 'github-actions[bot]@users.noreply.github.com'
4545
./gradlew release
4646
47+
# The previous "Release new version" step increases the version. We need this version for the publishing job. The
48+
# currentVersion command gets this value, which we store in the "version" variable for following jobs.
4749
- name: Get current version
4850
id: version
4951
run: echo "::set-output name=version::$(./gradlew -q -Prelease.quiet currentVersion)"

0 commit comments

Comments
 (0)