···13131414cd $end_to_end
15151616-if ! test -f forgejo/sources/$minor_version ; then
1717- echo "FAIL: forgejo/sources/$minor_version does not exist in the end-to-end repository"
1818- false
1616+if ! test -f forgejo/sources/$minor_version; then
1717+ echo "FAIL: forgejo/sources/$minor_version does not exist in the end-to-end repository"
1818+ false
1919fi
20202121-date > last-upgrade
2121+echo -n $minor_version >forgejo/build-from-sources
2222+date >last-upgrade
22232323-if test -f "$forgejo_pr_or_ref" ; then
2424- forgejo_pr=$forgejo_pr_or_ref
2525- head_url=$(jq --raw-output .head.repo.html_url < $forgejo_pr)
2626- test "$head_url" != null
2727- branch=$(jq --raw-output .head.ref < $forgejo_pr)
2828- test "$branch" != null
2929- echo $head_url $branch $full_version > forgejo/sources/$minor_version
2424+if test -f "$forgejo_pr_or_ref"; then
2525+ forgejo_pr=$forgejo_pr_or_ref
2626+ head_url=$(jq --raw-output .head.repo.html_url <$forgejo_pr)
2727+ test "$head_url" != null
2828+ branch=$(jq --raw-output .head.ref <$forgejo_pr)
2929+ test "$branch" != null
3030+ echo $head_url $branch $full_version >forgejo/sources/$minor_version
3031else
3131- forgejo_ref=$forgejo_pr_or_ref
3232- echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY ${forgejo_ref#refs/heads/} $full_version > forgejo/sources/$minor_version
3232+ forgejo_ref=$forgejo_pr_or_ref
3333+ echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY ${forgejo_ref#refs/heads/} $full_version >forgejo/sources/$minor_version
3334fi
+8-8
.forgejo/cascading-release-end-to-end
···88forgejo_ref=$4
991010cd $end_to_end
1111-date > last-upgrade
1111+date >last-upgrade
1212organizations=lib/ORGANIZATIONS
1313-if ! test -f $organizations ; then
1414- echo "$organizations file not found"
1515- false
1313+if ! test -f $organizations; then
1414+ echo "$organizations file not found"
1515+ false
1616fi
1717#
1818-# do not include forgejo-experimental so that 7.0-test is found
1919-# in forgejo-integration where it was just built instead of
2020-# forgejo-experimental which was published by the previous build
1818+# Inverse the order of lookup because the goal in the release built
1919+# pipeline is to test the latest build, if available, instead of the
2020+# stable version by the same version.
2121#
2222-echo forgejo forgejo-integration > $organizations
2222+echo forgejo-integration forgejo-experimental forgejo >$organizations