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
23 lines
591 B
YAML
23 lines
591 B
YAML
on:
|
|
schedule:
|
|
- cron: '* * * * *'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ vars.TEST_SCHEDULE_RUNSON }}
|
|
container:
|
|
image: code.forgejo.org/oci/debian:bookworm
|
|
options: "--volume /srv/example:/srv/example"
|
|
|
|
steps:
|
|
- 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
|
|
|
|
- run: |
|
|
echo "TEST_SCHEDULE_RUNSON=${{ vars.TEST_SCHEDULE_RUNSON }}"
|
|
touch /srv/example/post-7-0-schedule-volume/DONE
|