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 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 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'