1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Add task to update version in antora.yml

This task updates the docs version based on the version in gradle.properties

Closes gh-11020
This commit is contained in:
Eleftheria Stein
2022-03-28 17:43:59 +02:00
committed by Eleftheria Stein-Kousathana
parent 8c34af711e
commit 55c956ee68
8 changed files with 243 additions and 80 deletions
+5 -1
View File
@@ -88,11 +88,15 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update version and push
# antoraUpdateVersion can only be run after updateProjectVersion completes, in order get the updated project version
run: |
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
./gradlew updateProjectVersion -Pcommit=true
./gradlew :updateProjectVersion
./gradlew :spring-security-docs:antoraUpdateVersion
updatedVersion=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
git commit -m "Release $updatedVersion"
git push
notify_result:
name: Check for failures