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
This commit is contained in:
parent
657e367db9
commit
57fdd1cd49
1 changed files with 3 additions and 3 deletions
|
@ -10,9 +10,6 @@ jobs:
|
||||||
options: "--volume /srv/example:/srv/example"
|
options: "--volume /srv/example:/srv/example"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
|
||||||
touch /srv/example/cron-volume/DONE
|
|
||||||
|
|
||||||
- name: save context
|
- name: save context
|
||||||
run: |
|
run: |
|
||||||
d=/srv/example/cron/contexts/$GITHUB_EVENT_NAME
|
d=/srv/example/cron/contexts/$GITHUB_EVENT_NAME
|
||||||
|
@ -20,3 +17,6 @@ jobs:
|
||||||
cat > $d/github <<'EOF'
|
cat > $d/github <<'EOF'
|
||||||
${{ toJSON(github) }}
|
${{ toJSON(github) }}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
touch /srv/example/cron-volume/DONE
|
||||||
|
|
Loading…
Add table
Reference in a new issue