Skip to content

Instantly share code, notes, and snippets.

@weibeld
Created August 1, 2020 09:47
Show Gist options
  • Save weibeld/c7446c6aab83fa3aba429e7ead565436 to your computer and use it in GitHub Desktop.
Save weibeld/c7446c6aab83fa3aba429e7ead565436 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 3 + 4
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"
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