Skip to content

Instantly share code, notes, and snippets.

@weibeld
Created August 1, 2020 10:41
Show Gist options
  • Save weibeld/32dfb2003b2203db03bf043669d0162b to your computer and use it in GitHub Desktop.
Save weibeld/32dfb2003b2203db03bf043669d0162b to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 6
name: conditionals-6
on:
issues:
types: [opened]
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- name: handle-all-issues
run: echo "This step runs for all issues"
- if: startsWith(github.event.issue.title, 'bug')
name: handle-bug-reports
run: echo "This step runs only for bug reports"
- if: startsWith(github.event.issue.title, 'feature request')
name: handle-feature-requests
run: echo "This step runs only for feature requests"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment