-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
name: "Bump version in gradle.properties" | ||
description: "Increments the patch version of the version found in gradle.properties, appends -SNAPSHOT" | ||
description: "Increments the minor version of the version found in gradle.properties, appends -SNAPSHOT" | ||
inputs: | ||
target_branch: | ||
default: 'main' | ||
description: "Branch on which the version bump is to be done." | ||
required: false | ||
base_version: | ||
description: "The current version, which is to be bumped to the next snapshot" | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: read version from gradle.properties | ||
- name: bump current ${{ inputs.base_version }} version | ||
shell: bash | ||
run: | | ||
# Prepare git env | ||
git config user.name "eclipse-edc-bot" | ||
git config user.email "[email protected]" | ||
# checkout target | ||
git fetch origin | ||
git checkout ${{ inputs.target_branch }} | ||
# use current version from input | ||
baseVersion=${{ inputs.base_version }} | ||
existingVersion=$(grep "version" gradle.properties | awk -F= '{print $2}') | ||
|
@@ -52,4 +43,4 @@ runs: | |
git add . | ||
git commit --message "Bump version from $baseVersion to $newVersion [skip ci]" | ||
git push origin ${{ inputs.target_branch }} | ||
git push |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters