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 57fdd1cd49
but for
post-7-0-schedule instead of cron
This commit is contained in:
parent
2b8c2826c5
commit
9e60ae4449
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
EOF
|
||||
|
||||
- run: |
|
||||
echo "TEST_SCHEDULE_RUNSON=${{ vars.TEST_SCHEDULE_RUNSON }}"
|
||||
touch /srv/example/post-7-0-schedule-volume/DONE
|
||||
|
|
Loading…
Add table
Reference in a new issue