Last active
August 1, 2020 09:46
-
-
Save weibeld/497cbaf198dcd620738ea9ecf4451dc6 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: conditionals-2 | |
on: workflow_dispatch | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: step-1 | |
run: echo "Step 1" | |
- name: step-2 | |
run: exit 1 | |
- if: success() | |
name: step-3 | |
run: echo "Step 3" | |
- if: failure() | |
name: step-4 | |
run: echo "Step 4" | |
- if: always() | |
name: step-5 | |
run: echo "Step 5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment