Skip to content

Commit 43142a8

Browse files
Steve Riesenbergsjohnr
Steve Riesenberg
authored andcommitted
Update CI pipeline to push next snapshot version after release
Issue gh-10461
1 parent f12e5ca commit 43142a8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,18 @@ jobs:
253253
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
254254
echo "Tagging and publishing $REPO@$VERSION release on GitHub."
255255
./gradlew createGitHubRelease -PnextVersion=$VERSION -Pbranch=$BRANCH -PcreateRelease=true -PgitHubAccessToken=$TOKEN
256+
- name: Setup git config
257+
run: |
258+
git config user.name 'github-actions[bot]'
259+
git config user.email 'github-actions[bot]@users.noreply.github.com'
260+
- name: Update to next Snapshot Version
261+
run: |
262+
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
263+
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
264+
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
265+
echo "Updating $REPO@$VERSION to next snapshot version."
266+
./gradlew updateToSnapshotVersion -Pcommit=true
267+
git push
256268
notify_result:
257269
name: Check for failures
258270
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, create_release]

0 commit comments

Comments
 (0)