| 1 | name: Conditions |
| 2 | on: |
| 3 | pull_request: |
| 4 | types: [labeled, unlabeled, opened, synchronize] |
| 5 | jobs: |
| 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 |