mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 07:20:58 -05:00
30 lines
589 B
YAML
30 lines
589 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
steps:
|
|
|
|
- run: false
|
|
- if: failure()
|
|
run: echo IF TEST FAILURE
|
|
- if: always()
|
|
run: echo IF TEST ALWAYS
|
|
|
|
#
|
|
# This is documented in GitHub Actions and does not work in Forgejo Actions
|
|
# as of 3.0.0.
|
|
#
|
|
# If you have a chain of dependent jobs, failure() returns true if any ancestor job fails.
|
|
#
|
|
# first:
|
|
# runs-on: docker
|
|
# steps:
|
|
# - run: false
|
|
|
|
# second:
|
|
# runs-on: docker
|
|
# needs: [first]
|
|
# steps:
|
|
# - if: failure()
|
|
# run: echo IF TEST FAIL DEPENDS
|