From 9e60ae444938a63855d314a44049204da01d3087 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 1 Jun 2024 09:36:45 +0200 Subject: [PATCH] actions: post-7-0-schedule: create /srv/example/post-7-0-schedule/contexts first A loop is waiting for /srv/example/post-7-0-schedule-volume/DONE to exist before declaring the workflow is successfully run. But it is not really until /srv/example/post-7-0-schedule/contexts is created with the event content and they will race. Fixes: https://code.forgejo.org/forgejo/end-to-end/issues/181 Exactly the same as 57fdd1cd496dada21e8445c949c89c0057a49be9 but for post-7-0-schedule instead of cron --- .../.forgejo/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/actions/example-post-7-0-schedule/.forgejo/workflows/test.yml b/actions/example-post-7-0-schedule/.forgejo/workflows/test.yml index ee7c233..135364a 100644 --- a/actions/example-post-7-0-schedule/.forgejo/workflows/test.yml +++ b/actions/example-post-7-0-schedule/.forgejo/workflows/test.yml @@ -10,14 +10,14 @@ jobs: options: "--volume /srv/example:/srv/example" steps: - - run: | - echo "TEST_SCHEDULE_RUNSON=${{ vars.TEST_SCHEDULE_RUNSON }}" - touch /srv/example/post-7-0-schedule-volume/DONE - - name: save context run: | d=/srv/example/post-7-0-schedule/contexts/$GITHUB_EVENT_NAME mkdir -p $d cat > $d/github <<'EOF' ${{ toJSON(github) }} - EOF \ No newline at end of file + EOF + + - run: | + echo "TEST_SCHEDULE_RUNSON=${{ vars.TEST_SCHEDULE_RUNSON }}" + touch /srv/example/post-7-0-schedule-volume/DONE