mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Add hotfix branch
This commit is contained in:
parent
f47245585f
commit
0dca1b727d
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -48,9 +48,11 @@ jobs:
|
|||||||
|
|
||||||
cd $SOURCE_DIR
|
cd $SOURCE_DIR
|
||||||
|
|
||||||
|
BUILD_NUMBER_OFFSET="$(cat build_number_offset)"
|
||||||
|
|
||||||
export APP_VERSION=$(cat versions.json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["app"]);')
|
export APP_VERSION=$(cat versions.json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["app"]);')
|
||||||
export COMMIT_COUNT=$(git rev-list --count HEAD)
|
export COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
export COMMIT_COUNT="$(($COMMIT_COUNT+2000))"
|
export COMMIT_COUNT="$(($COMMIT_COUNT+$BUILD_NUMBER_OFFSET))"
|
||||||
export BUILD_NUMBER="$COMMIT_COUNT"
|
export BUILD_NUMBER="$COMMIT_COUNT"
|
||||||
echo "BUILD_NUMBER=$(echo $BUILD_NUMBER)" >> $GITHUB_ENV
|
echo "BUILD_NUMBER=$(echo $BUILD_NUMBER)" >> $GITHUB_ENV
|
||||||
echo "APP_VERSION=$(echo $APP_VERSION)" >> $GITHUB_ENV
|
echo "APP_VERSION=$(echo $APP_VERSION)" >> $GITHUB_ENV
|
||||||
|
|||||||
@ -70,6 +70,7 @@ beta_testflight:
|
|||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
|
- hotfix
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@ -87,6 +88,7 @@ deploy_beta_testflight:
|
|||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
|
- hotfix
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@ -100,6 +102,7 @@ verifysanity_beta_testflight:
|
|||||||
stage: verifysanity
|
stage: verifysanity
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
|
- hotfix
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@ -118,6 +121,7 @@ verify_beta_testflight:
|
|||||||
stage: verify
|
stage: verify
|
||||||
only:
|
only:
|
||||||
- beta
|
- beta
|
||||||
|
- hotfix
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
|
|||||||
1
build_number_offset
Normal file
1
build_number_offset
Normal file
@ -0,0 +1 @@
|
|||||||
|
100
|
||||||
@ -79,7 +79,8 @@ COMMIT_ID="$(git rev-parse HEAD)"
|
|||||||
COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an')
|
COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an')
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
COMMIT_COUNT="$(($COMMIT_COUNT+2000))"
|
BUILD_NUMBER_OFFSET="$(cat build_number_offset)"
|
||||||
|
COMMIT_COUNT="$(($COMMIT_COUNT+$BUILD_NUMBER_OFFSET))"
|
||||||
BUILD_NUMBER="$COMMIT_COUNT"
|
BUILD_NUMBER="$COMMIT_COUNT"
|
||||||
else
|
else
|
||||||
BUILD_NUMBER="$2"
|
BUILD_NUMBER="$2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user