Skip to content

Commit

Permalink
Update update-javavalidator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzautke authored Dec 31, 2024
1 parent af20ca6 commit 7529890
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/update-javavalidator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ jobs:
run: |
if dpkg --compare-versions "$JAVA_VALIDATOR_VERSION" lt "$LATEST_RELEASE"; then
echo "Found outdated version of Java validator, update recommended."
JAVA_UDPATE_RECOMMENDED=true
echo "JAVA_UDPATE_RECOMMENDED=$JAVA_UDPATE_RECOMMENDED" >> $GITHUB_ENV
elif dpkg --compare-versions "$VERSION1" gt "$VERSION2"; then
echo "Unexpected version of Java validator found, it appears to be higher than the latest release version."
exit 1
else
echo "Java validator is up-to-date."
fi
- name: Create patch for Java validator version in action.yml
run: |
branchName="update-java-validator-version-$LATEST_RELEASE"
git checkout -b "update-java-validator-version-$branchName"
yq -i ".inputs.JAVA_VALIDATOR_VERSION.default = \"$NEW_VERSION\"" action.yml
git add action.yml
git commit -m "Update JAVA_VALIDATOR_VERSION to $LATEST_RELEASE"
git push -u origin "$branchName"
gh pr create --base main --head "$BRANCH_NAME" --title "Update JAVA_VALIDATOR_VERSION to $LATEST_RELEASE" --body "This PR updates the JAVA_VALIDATOR_VERSION to $LATEST_RELEASE."

0 comments on commit 7529890

Please sign in to comment.