Skip to content

Commit a8f1e59

Browse files
authored
Merge pull request #278 from paketo-buildpacks/update/pipeline
Bump pipeline from 1.36.2 to 1.36.5
2 parents 9211931 + a04fc5a commit a8f1e59

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/pipeline-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2
1+
1.36.5

.github/workflows/pb-update-sbt.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ jobs:
5555
5656
set -euo pipefail
5757
58-
if [ -z "${ARCH}" ]; then
59-
ARCH="amd64"
60-
fi
58+
VERSION_DEPS=$(yj -tj < buildpack.toml | jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) )")
59+
ARCH=${ARCH:-amd64}
60+
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r 'select( .purl | contains( env.ARCH ) ) | .version')
6161
62-
OLD_VERSION=$(yj -tj < buildpack.toml | \
63-
jq -r ".metadata.dependencies[] | select( .id == env.ID ) | select( .version | test( env.VERSION_PATTERN ) ) | select( .purl | contains( env.ARCH ) ) | .version")
62+
if [ -z "$OLD_VERSION" ]; then
63+
ARCH="" # empty means noarch
64+
OLD_VERSION=$(echo "$VERSION_DEPS" | jq -r ".version")
65+
fi
6466
6567
update-buildpack-dependency \
6668
--buildpack-toml buildpack.toml \

0 commit comments

Comments
 (0)