end-to-end/actions/example-schedule-noncancel/run.sh

18 lines
598 B
Bash
Executable file

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
#
forgejo-test-helper.sh push_workflow actions/example-echo $url root example-$example setup-forgejo $token
#
# wait for the workflow to be canceled as a result of the previous push
#
forgejo-test-helper.sh wait_success $url $repo $sha