Created
August 1, 2020 09:47
-
-
Save weibeld/c7446c6aab83fa3aba429e7ead565436 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 3 + 4
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-3 | |
on: workflow_dispatch | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: step-1 | |
run: echo "Step 1" | |
- name: step-2 | |
run: echo "Step 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-4 | |
on: workflow_dispatch | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- if: success() | |
name: step-1 | |
run: echo "Step 1" | |
- if: success() | |
name: step-2 | |
run: echo "Step 2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment