FORGEJO_URL because github.server_url is empty

This commit is contained in:
Earl Warren 2023-03-30 09:11:45 +02:00
parent 073db9062f
commit 870dc58266
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -51,7 +51,10 @@ function push() {
local workflows=$dir/.forgejo/workflows/*.yml
if test "$(echo $workflows)" != "$workflows"; then
sed -i -e "s|SELF|$url/$owner/$self_action|" $dir/.forgejo/workflows/*.yml
sed -i \
-e "s|SELF|$url/$owner/$self_action|" \
-e "s|FORGEJO_URL|$url|" \
$dir/.forgejo/workflows/*.yml
fi
(
cd $dir