mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
snap: fix grade determination
Determine grade based on whether we actually managed to check out the buildnumber. This assumes that the tree is clean for building a stable snap (one that can be published to candidate and stable channels). Signed-off-by: Michał Sawicz <michal@sawicz.net>
This commit is contained in:
parent
cb3e21c443
commit
96470227d5
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ parts:
|
|||
- qttools5-dev
|
||||
override-pull: |
|
||||
craftctl default
|
||||
if [ ! -f latest-subsurface-buildnumber ]; then
|
||||
git fetch --depth=1 https://github.com/subsurface/nightly-builds.git branch-for-$( git rev-parse HEAD )
|
||||
if [ ! -f latest-subsurface-buildnumber ] \
|
||||
&& git fetch --depth=1 https://github.com/subsurface/nightly-builds.git branch-for-$( git rev-parse HEAD ); then
|
||||
git checkout FETCH_HEAD latest-subsurface-buildnumber
|
||||
# We succeeded getting the release version, allow publishing above `beta`
|
||||
craftctl set grade=stable
|
||||
|
|
Loading…
Add table
Reference in a new issue