shfmt -w globally
This commit is contained in:
parent
4e207414d4
commit
d5f66e4c0a
27 changed files with 378 additions and 375 deletions
|
@ -7,7 +7,7 @@ forgejo-test-helper.sh push_workflow actions/example-$example $url root example-
|
|||
# See https://codeberg.org/forgejo/forgejo/pulls/1941 for more information
|
||||
#
|
||||
function verify_ref() {
|
||||
local ref=$(sqlite3 $DIR/forgejo-work-path/forgejo.db 'select ref from action_schedule')
|
||||
local ref=$(sqlite3 $DIR/forgejo-work-path/forgejo.db 'select ref from action_schedule')
|
||||
test "${ref##*/}" = "main"
|
||||
}
|
||||
verify_ref
|
||||
|
@ -16,12 +16,12 @@ forgejo-curl.sh api_json --data '{"new_branch_name":"zzzz"}' $api/repos/root/exa
|
|||
verify_ref
|
||||
|
||||
# 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
|
||||
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
|
||||
|
||||
c=/srv/example/cron/contexts/schedule/github
|
||||
cat $c
|
||||
test "schedule" = "$(jq -r .event_name < $c)"
|
||||
test "schedule" = "$(jq -r .event.action < $c)"
|
||||
test "schedule" = "$(jq -r .event_name <$c)"
|
||||
test "schedule" = "$(jq -r .event.action <$c)"
|
||||
|
|
Loading…
Add table
Reference in a new issue