diff --git a/.github/workflows/pb-update-maven.yml b/.github/workflows/pb-update-maven.yml index 41cb4bf..1fecfd8 100644 --- a/.github/workflows/pb-update-maven.yml +++ b/.github/workflows/pb-update-maven.yml @@ -56,11 +56,8 @@ jobs: set -euo pipefail - OLD_VERSION=$(yj -tj < buildpack.toml | jq -r " - .metadata.dependencies[] | - select( .id == env.ID ) | - select( .version | test( env.VERSION_PATTERN ) ) | - .version") + OLD_VERSION=$(yj -tj < buildpack.toml | \ + jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) ) | select( .purl | contains( env.ARCH ) )") update-buildpack-dependency \ --buildpack-toml buildpack.toml \ @@ -91,6 +88,7 @@ jobs: echo "new-version=${VERSION}" >> "$GITHUB_OUTPUT" echo "version-label=${LABEL}" >> "$GITHUB_OUTPUT" env: + ARCH: "" CPE: ${{ steps.dependency.outputs.cpe }} CPE_PATTERN: "" ID: maven