2023-10-15 11:37:51 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
setup_forgejo=$1
|
|
|
|
setup_forgejo_pr=$2
|
2023-10-25 00:43:35 -05:00
|
|
|
runner=$3
|
|
|
|
runner_pr=$4
|
2023-10-15 11:37:51 -05:00
|
|
|
|
|
|
|
url=$(jq --raw-output .head.repo.html_url < $runner_pr)
|
|
|
|
test "$url" != null
|
|
|
|
branch=$(jq --raw-output .head.ref < $runner_pr)
|
|
|
|
test "$branch" != null
|
|
|
|
cd $setup_forgejo
|
|
|
|
./utils/upgrade-runner.sh $url @$branch
|
2023-10-24 17:35:51 -05:00
|
|
|
date > last-upgrade
|