Skip to content

Commit

Permalink
Merge pull request #815 from eclipse-tractusx/chore/add-dependency-up…
Browse files Browse the repository at this point in the history
…date-to-lib-update

Chore/add dependency update to lib update
  • Loading branch information
ds-jhartmann authored Jul 16, 2024
2 parents 9dcd626 + 692776b commit 8813b6b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/update-registry-library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ on:
inputs:
version-type:
type: choice
description: Type of version increment
description: Type of version increment. 'none' will release the current -SNAPSHOT version without increment.
required: true
options:
- 'major'
- 'minor'
- 'patch'
- 'none'
is-release-version:
type: boolean
required: true
Expand Down Expand Up @@ -51,6 +52,12 @@ jobs:
patch=0
elif [ "$TYPE" == "patch" ]; then
patch=$((patch + 1))
elif [ "$TYPE" == "none" ]; then
if [ $IS_RELEASE_VERSION = 'false' ]; then
echo "Invalid increment type. Type 'none' is only supported in combination with 'is-release-version=true'."
exit 1
fi
echo "Skipping version increment, only remove -SNAPSHOT"
else
echo "Invalid increment type. Use 'major', 'minor', or 'patch'."
exit 1
Expand All @@ -59,6 +66,10 @@ jobs:
if [ $IS_RELEASE_VERSION = 'true' ]; then
new_version="${major}.${minor}.${patch}"
fi
if [ $new_version == $CURRENT_VERSION ]; then
echo "New version $new_version is equal to current version $CURRENT_VERSION."
exit 1
fi
echo NEXT_VERSION="$new_version" >> $GITHUB_ENV
- name: Update irs-registry-client version
Expand All @@ -67,6 +78,10 @@ jobs:
run: |-
sed -i -e 's#<irs-registry-client\.version>.*</irs-registry-client\.version>#<irs-registry-client\.version>'$VERSION'</irs-registry-client\.version>#g' pom.xml
- name: Update DEPENDENCIES
run: |
mvn org.eclipse.dash:license-tool-plugin:license-check -Ddash.summary=DEPENDENCIES -P dash
- name: Create PR for irs-registry-client version update
uses: peter-evans/create-pull-request@v6
with:
Expand Down

0 comments on commit 8813b6b

Please sign in to comment.