end-to-end/actions/example-if-cancel/.forgejo/workflows/test.yml

18 lines
351 B
YAML
Raw Normal View History

2023-10-28 20:29:04 +00:00
#
# As of Forgejo v1.20 running this example would require using the web
# endpoints because there is no API to do the same.
#
# It was manually tested to **not work** with Forgejo v1.21 & runner 3.0.1
#
on: [push]
jobs:
test:
runs-on: docker
steps:
- run: sleep infinity
- if: cancelled()
run: echo IF TEST CANCELLED