2023-10-28 22:29:04 +02:00
|
|
|
repo=root/example-$example
|
|
|
|
#
|
|
|
|
# push the repository
|
|
|
|
#
|
|
|
|
forgejo-test-helper.sh push_workflow actions/example-$example $url root example-$example setup-forgejo $token
|
|
|
|
sha=$(forgejo-test-helper.sh branch_tip $url $repo main)
|
|
|
|
#
|
|
|
|
# wait for the workflow (sleep infinity) to start running
|
|
|
|
#
|
|
|
|
forgejo-test-helper.sh wait_running $url $repo $sha
|
|
|
|
#
|
|
|
|
# push to the same branch
|
|
|
|
#
|
2024-08-07 08:31:33 +02:00
|
|
|
forgejo-test-helper.sh push_workflow actions/example-echo $url root example-$example setup-forgejo $token
|
2023-10-28 22:29:04 +02:00
|
|
|
#
|
2024-03-26 09:21:32 +01:00
|
|
|
# wait for the workflow to be canceled as a result of the previous push
|
2023-10-28 22:29:04 +02:00
|
|
|
#
|
|
|
|
forgejo-test-helper.sh wait_failure $url $repo $sha 'Has been cancelled'
|