mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-21 20:27:17 +03:00
16 lines
309 B
Bash
Executable file
16 lines
309 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
setup_forgejo=$1
|
|
setup_forgejo_pr=$2
|
|
runner=$3
|
|
runner_pr=$4
|
|
|
|
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
|
|
date > last-upgrade
|