Skip to content
17 linesCodeBlameRaw
1name: Conditions
2on:
3 pull_request:
4 types: [labeled, unlabeled, opened, synchronize]
5jobs:
6 labeled:
7 if: contains(github.event.pull_request.labels.*.name, 'deploy')
8 runs-on: ubuntu-latest
9 steps:
10 - if: ${{ github.event.action == 'labeled' && github.event.label.name == 'deploy' }}
11 run: echo just labeled
12 - if: failure()
13 run: echo failed
14 - if: cancelled()
15 run: echo cancelled
16 - if: "!startsWith(github.head_ref, 'renovate/')"
17 run: echo not renovate