1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-06-27 16:35:58 +00:00

[FORGEJO] upgrade to act v1.13.0

This commit is contained in:
Earl Warren 2023-11-07 20:19:08 +01:00 committed by earl-warren
parent f0dc5e90a0
commit 6d77918ad1
2 changed files with 15 additions and 12 deletions

View file

@ -23,16 +23,17 @@ services:
git add . ;
git config user.email root@example.com ;
git config user.name username ;
git commit -m 'demo' ;
git commit -m demo ;
while : ; do
git push --set-upstream --force http://root:{ROOT_PASSWORD}@forgejo:3000/root/test main && break ;
sleep 5 ;
done ;
sha=`git rev-parse HEAD` ;
for delay in 1 1 1 1 2 5 5 10 10 10 15 ; do
for delay in 1 1 1 1 2 5 5 10 10 10 15 30 30 30 30 30 30 30 ; do
curl -sS -f http://forgejo:3000/api/v1/repos/root/test/commits/$$sha/status | jq --raw-output .state | tee status ;
if grep success status ; then echo DEMO WORKFLOW SUCCESS && break ; fi ;
if grep failure status ; then echo DEMO WORKFLOW FAILURE && break ; fi ;
sleep $$delay ;
done
done ;
grep success status || echo DEMO WORKFLOW FAILURE
'