Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active August 1, 2020 09:46
Show Gist options
  • Save weibeld/497cbaf198dcd620738ea9ecf4451dc6 to your computer and use it in GitHub Desktop.
Save weibeld/497cbaf198dcd620738ea9ecf4451dc6 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 2
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