Append commit abbreviation to the snap version for non-release builds #2234

Merged
PeterSurda merged 2 commits from gitea-95 into v0.6 2024-05-20 01:06:23 +02:00
Showing only changes of commit 41fd17b637 - Show all commits

View File

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
git remote add -f upstream https://github.com/Bitmessage/PyBitmessage.git
HEAD="$(git rev-parse HEAD)"
UPSTREAM="$(git merge-base --fork-point upstream/v0.6)"
SNAP_DIFF="$(git diff upstream/v0.6 -- packages/snap .buildbot/snap)"
[ -z "${SNAP_DIFF}" ] && [ $HEAD != $UPSTREAM ] && exit 0
pushd packages && snapcraft || exit 1 pushd packages && snapcraft || exit 1
popd popd