mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-30 10:11:03 -05:00
do not override the DOT variable from forgejo-curl.sh
This commit is contained in:
parent
65957effd9
commit
05385ad75e
2 changed files with 0 additions and 2 deletions
|
@ -69,7 +69,6 @@ function create_user() {
|
||||||
|
|
||||||
$DIR/forgejocli admin user create --admin --username "$user" --password "$password" --email "$user@example.com"
|
$DIR/forgejocli admin user create --admin --username "$user" --password "$password" --email "$user@example.com"
|
||||||
$DIR/forgejocli admin user generate-access-token -u "$user" --raw --scopes all > $DIR/forgejo-token
|
$DIR/forgejocli admin user generate-access-token -u "$user" --raw --scopes all > $DIR/forgejo-token
|
||||||
export DOT=$DIR
|
|
||||||
local url="http://$(cat $DIR/forgejo-ip):3000"
|
local url="http://$(cat $DIR/forgejo-ip):3000"
|
||||||
echo "$url" > $DIR/forgejo-url
|
echo "$url" > $DIR/forgejo-url
|
||||||
echo "http://${user}:${password}@$(cat $DIR/forgejo-ip):3000" > $DIR/forgejo-auth-url
|
echo "http://${user}:${password}@$(cat $DIR/forgejo-ip):3000" > $DIR/forgejo-auth-url
|
||||||
|
|
|
@ -10,7 +10,6 @@ source $SELF_DIR/forgejo-lib.sh
|
||||||
: ${LOOP_DELAY:=5}
|
: ${LOOP_DELAY:=5}
|
||||||
WORKDIR=$(mktemp -d)
|
WORKDIR=$(mktemp -d)
|
||||||
: ${DIR:=$(pwd)}
|
: ${DIR:=$(pwd)}
|
||||||
export DOT=$DIR
|
|
||||||
|
|
||||||
trap "rm -fr $WORKDIR" EXIT
|
trap "rm -fr $WORKDIR" EXIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue