From 57fdd1cd496dada21e8445c949c89c0057a49be9 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 21 May 2024 08:13:15 +0200 Subject: [PATCH] actions: cron: create /srv/example/cron/contexts first A loop is waiting for /srv/example/cron-volume/DONE to exist before declaring the workflow is successfully run. But it is not really until /srv/example/cron/contexts is created with the event content and they will race. Fixes: https://code.forgejo.org/forgejo/end-to-end/issues/181 --- actions/example-cron/.forgejo/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/example-cron/.forgejo/workflows/test.yml b/actions/example-cron/.forgejo/workflows/test.yml index 2eedd14..e2748f8 100644 --- a/actions/example-cron/.forgejo/workflows/test.yml +++ b/actions/example-cron/.forgejo/workflows/test.yml @@ -10,9 +10,6 @@ jobs: options: "--volume /srv/example:/srv/example" steps: - - run: | - touch /srv/example/cron-volume/DONE - - name: save context run: | d=/srv/example/cron/contexts/$GITHUB_EVENT_NAME @@ -20,3 +17,6 @@ jobs: cat > $d/github <<'EOF' ${{ toJSON(github) }} EOF + + - run: | + touch /srv/example/cron-volume/DONE