lib: ORGANIZATIONS ordered list #118

Merged
twenty-panda merged 3 commits from refs/pull/118/head into main 2024-04-27 08:53:40 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 02d263e212 - Show all commits

1
lib/ORGANIZATIONS Normal file
View file

@ -0,0 +1 @@
forgejo forgejo-experimental forgejo-integration

View file

@ -35,6 +35,7 @@ export DOT=$DOT_FORGEJO_CURL # for backward compatibility with forgejo-curl.sh 1
: ${FORGEJO_USER:=root}
: ${FORGEJO_PASSWORD:=admin1234}
RELEASE_NUMBERS_AND_DEV="$(for r in $RELEASE_NUMBERS ; do echo -n $r $r-dev ; done)"
ORGANIZATIONS=$(cat $LIB_DIR/ORGANIZATIONS)
function log_info() {
echo "$PREFIX $@"
@ -116,7 +117,7 @@ function download() {
if ! test -f $DIR_BINARIES/forgejo-$version ; then
mkdir -p $DIR_BINARIES
for owner in forgejo forgejo-experimental forgejo-integration ; do
for owner in $ORGANIZATIONS ; do
full_version=$(full_version $version $owner)
if test "$full_version" = "" ; then
continue