From 36456ee74f90a9941afe76cb6dd69eb4097d2926 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 26 Mar 2024 08:31:26 +0100 Subject: [PATCH 1/3] actions: pull-request: assert the existence of contexts and not the existence of tokens --- .../example-pull-request/{assert-token.sh => assert-contexts.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename actions/example-pull-request/{assert-token.sh => assert-contexts.sh} (100%) diff --git a/actions/example-pull-request/assert-token.sh b/actions/example-pull-request/assert-contexts.sh similarity index 100% rename from actions/example-pull-request/assert-token.sh rename to actions/example-pull-request/assert-contexts.sh From d8673b8c0bb39a7ef253c6b92aa00aee09fbacdd Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 26 Mar 2024 08:35:16 +0100 Subject: [PATCH 2/3] actions: pull-request: squash main/setup functions --- actions/example-pull-request/run.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/actions/example-pull-request/run.sh b/actions/example-pull-request/run.sh index 5ae0baa..a262e6f 100755 --- a/actions/example-pull-request/run.sh +++ b/actions/example-pull-request/run.sh @@ -3,7 +3,7 @@ export d=/srv/example/pull-request PROOF='some proof' -function setup() { +function main() { mkdir -p $d forgejo-test-helper.sh push_workflow actions/example-$example $url root example-$example setup-forgejo $token @@ -54,8 +54,4 @@ function setup() { done } -function main() { - setup -} - main From cd377ddbade31688a734f58dc72a96c6475ddf24 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 26 Mar 2024 09:21:32 +0100 Subject: [PATCH 3/3] actions: push-cancel: fix typo --- actions/example-push-cancel/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/example-push-cancel/run.sh b/actions/example-push-cancel/run.sh index 37ed9d3..dbdebb4 100755 --- a/actions/example-push-cancel/run.sh +++ b/actions/example-push-cancel/run.sh @@ -13,6 +13,6 @@ forgejo-test-helper.sh wait_running $url $repo $sha # forgejo-test-helper.sh push_workflow actions/example-$example $url root example-$example setup-forgejo $token # -# wait for the workflow to be canceld as a result of the previous push +# wait for the workflow to be canceled as a result of the previous push # forgejo-test-helper.sh wait_failure $url $repo $sha 'Has been cancelled'