mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-07-01 14:26:00 +02:00
add example of cron task
This commit is contained in:
parent
b081450249
commit
7e8c8064af
12 changed files with 102 additions and 41 deletions
7
testdata/example-cron/run.sh
vendored
Executable file
7
testdata/example-cron/run.sh
vendored
Executable file
|
@ -0,0 +1,7 @@
|
|||
forgejo-test-helper.sh push_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)
|
||||
# cron runs once per minute, give it three minutes max before declaring failure
|
||||
if ! RETRY_DELAYS="30 30 30 30 30 30" forgejo.sh retry test -f /srv/example-cron-volume/DONE ; then
|
||||
cat $FORGEJO_RUNNER_LOGS
|
||||
false
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue