diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-20 23:07:42 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-09 15:38:42 +0100 |
commit | 714c83b2736d7e308bc33c49057952490eb98be2 (patch) | |
tree | 1d9ba7035798368569cd49056f4d596efc908cd8 /.forgejo/cascading-pr-runner | |
parent | Initial commit. (diff) | |
download | forgejo-act-debian.tar.xz forgejo-act-debian.zip |
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '.forgejo/cascading-pr-runner')
-rwxr-xr-x | .forgejo/cascading-pr-runner | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.forgejo/cascading-pr-runner b/.forgejo/cascading-pr-runner new file mode 100755 index 0000000..bcb29c6 --- /dev/null +++ b/.forgejo/cascading-pr-runner @@ -0,0 +1,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 |