runner/.forgejo/cascading-pr-setup-forgejo

16 lines
299 B
Plaintext
Raw Normal View History

#!/bin/bash
set -ex
setup_forgejo=$1
setup_forgejo_pr=$2
runner_pr=$3
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 22:35:51 +00:00
date > last-upgrade