Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump importlib-resources from 5.10.1 to 5.12.0 #166

Open
wants to merge 16 commits into
base: nightly
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Test snapcraft override-pull
  • Loading branch information
JonnyWong16 committed Dec 23, 2022
commit 53207d838661c6a467ed15d9e7cf27abb05898de
10 changes: 6 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ parts:
override-pull: |
snapcraftctl pull
git config --global --add safe.directory /data/parts/tautulli/src
TAG_FULL="$(git describe --tag)"
echo $(git describe --tag)
# TAG_FULL=$(git describe --tag)
TAG_FULL=v2.5.2-1373-g4d6cb2e1
echo $(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)')
# TAG=$(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)')
# echo $TAG
TAG=v2.11.0
echo $(git rev-parse --abbrev-ref HEAD)
# BRANCH=$(git rev-parse --abbrev-ref HEAD)
# echo $BRANCH
BRANCH=nightly
echo $(git rev-parse HEAD)
# COMMIT=$(git rev-parse HEAD)
# echo $COMMIT
COMMIT=4d6cb2e18bb1e6da932827621a6b3e5547c53132
Expand All @@ -50,19 +55,16 @@ parts:
else
VERSION=$(echo $COMMIT | head -c 7)
fi
echo $VERSION
if [ ! "$VERSION" = "$TAG" ] || [ ! "$VERSION" = "${VERSION%-beta}" ]; then
GRADE=devel
else
GRADE=stable
fi
echo $GRADE
if [ "$VERSION" = "$TAG" ] && [ ! "$VERSION" = "${VERSION%-beta}" ]; then
BRANCH=beta
elif [ "$VERSION" = "$TAG" ]; then
BRANCH=master
fi
echo $BRANCH
echo $BRANCH > branch.txt
echo $COMMIT > version.txt
snapcraftctl set-version "$VERSION"
Expand Down