Merge branch 'actions-release-experimental' into update-v7.0.2
This commit is contained in:
commit
97d54ef161
1 changed files with 12 additions and 1 deletions
13
.ci-make.sh
13
.ci-make.sh
|
@ -95,7 +95,18 @@ case "$1" in
|
||||||
if [ ! $CI_COMMIT_TAG_RESOLVE ] ; then
|
if [ ! $CI_COMMIT_TAG_RESOLVE ] ; then
|
||||||
echo "Failed to resolve exact tag! Getting as close as we can..."
|
echo "Failed to resolve exact tag! Getting as close as we can..."
|
||||||
git describe --tags HEAD
|
git describe --tags HEAD
|
||||||
CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0)
|
FORGEJO_CLOSEST_TAG=$(git describe --tags HEAD --abbrev=0)
|
||||||
|
echo "Looking for experimental tag..."
|
||||||
|
EXPERIMENTAL_REPO="forgejo-experimental/forgejo"
|
||||||
|
git remote add experimental "https://codeberg.org/$EXPERIMENTAL_REPO"
|
||||||
|
git fetch experimental --tags
|
||||||
|
CI_COMMIT_TAG_RESOLVE=$(git tag --points-at HEAD)
|
||||||
|
if [ $CI_COMMIT_TAG_RESOLVE ] ; then
|
||||||
|
CI_VERIFY_REPO="forgejo-experimental/forgejo"
|
||||||
|
FORGEJO_CLOSEST_TAG=$CI_COMMIT_TAG_RESOLVE
|
||||||
|
echo "Found it! Using experimental tag and downloading binary from $CI_VERIFY_REPO"
|
||||||
|
fi
|
||||||
|
CI_COMMIT_TAG_RESOLVE=$FORGEJO_CLOSEST_TAG
|
||||||
echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE"
|
echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE"
|
||||||
if [ "$CI_COMMIT_TAG_RESOLVE" != "${CI_COMMIT_TAG_RESOLVE%"-dev"}" ] || [ ! "$CI_COMMIT_TAG_RESOLVE" ] ; then
|
if [ "$CI_COMMIT_TAG_RESOLVE" != "${CI_COMMIT_TAG_RESOLVE%"-dev"}" ] || [ ! "$CI_COMMIT_TAG_RESOLVE" ] ; then
|
||||||
if [ $PR_MODE ] ; then
|
if [ $PR_MODE ] ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue