Created
August 1, 2020 10:41
-
-
Save weibeld/32dfb2003b2203db03bf043669d0162b to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Conditionals 6
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-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