Skip to content

Commit f283bce

Browse files
authored
Merge pull request #266 from linuxserver/unstable-fix-refs
FIx commit sha fetch for clashing tags
2 parents 9647c60 + 6a64e51 commit f283bce

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN \
6464
make check && \
6565
make install && \
6666
echo "**** Patch Sab commit into version.py ****" && \
67-
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
67+
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
6868
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
6969
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
7070
echo "**** cleanup ****" && \

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN \
6464
make check && \
6565
make install && \
6666
echo "**** Patch Sab commit into version.py ****" && \
67-
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
67+
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
6868
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
6969
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
7070
echo "**** cleanup ****" && \

Dockerfile.riscv64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN \
6464
make check && \
6565
make install && \
6666
echo "**** Patch Sab commit into version.py ****" && \
67-
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
67+
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
6868
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
6969
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
7070
echo "**** cleanup ****" && \

0 commit comments

Comments
 (0)