summaryrefslogtreecommitdiffstats
path: root/.forgejo/cascading-pr-runner
blob: bcb29c6b8e6f14b49b64afc06d61356556d3f8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -ex

runner=$1
runner_pr=$2
act=$3
act_pr=$4

url=$(jq --raw-output .head.repo.html_url < $act_pr)
test "$url" != null
url=${url##http*://}
branch=$(jq --raw-output .head.ref < $act_pr)
test "$branch" != null
cd $runner
sed -i -e "s|^replace github.com/nektos/act.*|replace github.com/nektos/act => $url $branch|" go.mod
GOPROXY=direct go mod tidy
date > last-upgrade