Skip to content

dependency-updates #3512

dependency-updates

dependency-updates #3512

name: dependency-updates
on:
push:
branches:
- develop
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
maven-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update maven version
id: update
run: |
MAVEN_VERSION="$(
git ls-remote --tags https://github.com/apache/maven "maven-3.*.*" \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed "s|\^{}||g" \
| sed "s|maven-||g"
)"
curl -sfL https://dlcdn.apache.org/maven/maven-3/"${MAVEN_VERSION}"/binaries/apache-maven-"${MAVEN_VERSION}"-bin.tar.gz || exit 1
sed -i "s|ARG MAVEN_VERSION=.*|ARG MAVEN_VERSION=$MAVEN_VERSION|" ./Dockerfile
echo "version=$MAVEN_VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update maven version to ${{ steps.update.outputs.version }}
branch: update-maven-version
title: update maven version to ${{ steps.update.outputs.version }}
body: update maven version to ${{ steps.update.outputs.version }}
maven4-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update maven4 version
id: update
run: |
MAVEN4_VERSION="$(
git ls-remote --tags https://github.com/apache/maven "maven-4.*.*" \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed "s|\^{}||g" \
| sed "s|maven-||g"
)"
curl -sfL https://dlcdn.apache.org/maven/maven-4/"${MAVEN4_VERSION}"/binaries/apache-maven-"${MAVEN4_VERSION}"-bin.tar.gz || exit 1
sed -i "s|ARG MAVEN4_VERSION=.*|ARG MAVEN4_VERSION=$MAVEN4_VERSION|" ./Dockerfile
echo "version=$MAVEN4_VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update maven4 version to ${{ steps.update.outputs.version }}
branch: update-maven4-version
title: update maven4 version to ${{ steps.update.outputs.version }}
body: update maven4 version to ${{ steps.update.outputs.version }}