forgejo-curl/.forgejo/cascading-pr-setup-forgejo
Earl Warren 976b816b3b
All checks were successful
/ test (map[image:codeberg.org/forgejo-experimental/forgejo version:1.21.0-6-rc2]) (push) Successful in 58s
/ test (map[image:codeberg.org/forgejo/forgejo version:1.19]) (push) Successful in 1m3s
/ test (map[image:codeberg.org/forgejo/forgejo version:1.20]) (push) Successful in 59s
cascade PR goes to a fork for setup-forgejo
2023-11-04 00:09:27 +01:00

14 lines
241 B
Bash
Executable file

#!/bin/bash
set -ex
setup_forgejo=$1
setup_forgejo_pr=$2
forgejo_curl=$3
forgejo_curl_pr=$4
sha=$(jq --raw-output .head.sha < $forgejo_curl_pr)
test "$sha" != null
test -d $setup_forgejo
cp -a $forgejo_curl/forgejo-curl.sh $setup_forgejo