1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2025-06-23 10:38:01 +02:00

add example of cron task

This commit is contained in:
Earl Warren 2023-09-24 20:32:40 +02:00
parent b081450249
commit 7e8c8064af
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
12 changed files with 102 additions and 41 deletions

7
testdata/example-if-fail/run.sh vendored Executable file
View file

@ -0,0 +1,7 @@
if forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token) >& /tmp/run.out ; then
cat /tmp/run.out
false
fi
grep --quiet 'IF TEST FAILURE' $FORGEJO_RUNNER_LOGS
grep --quiet 'IF TEST ALWAYS' $FORGEJO_RUNNER_LOGS