|
1 |
| -name: Conditionally process PR |
| 1 | +name: Event |
2 | 2 |
|
3 | 3 | on:
|
4 |
| - pull_request_target: |
5 |
| - types: [opened, synchronize, reopened] |
| 4 | + workflow_dispatch: |
6 | 5 |
|
7 | 6 | jobs:
|
8 |
| - process-pr: |
| 7 | + if-tests: |
9 | 8 | runs-on: ubuntu-latest
|
| 9 | + permissions: {} |
10 | 10 | steps:
|
11 | 11 | - name: Test 1
|
12 | 12 | if: 1 == 2
|
@@ -36,10 +36,10 @@ jobs:
|
36 | 36 | - name: Test 7
|
37 | 37 | run: echo "Test 7 should not be printed"
|
38 | 38 | if: ${{
|
39 |
| - github.actor == 'torvalds' || |
40 |
| - github.actor == 'dependabot[bot]' |
| 39 | + 1 == 2 || |
| 40 | + 3 == 4 |
41 | 41 | }}
|
42 |
| - |
| 42 | + |
43 | 43 | - name: Test 8
|
44 | 44 | run: echo "Test 8 should not be printed"
|
45 | 45 | if: >
|
|
87 | 87 | false || 1 == 2
|
88 | 88 | )}}
|
89 | 89 | run: echo "Test 17 should not be printed"
|
| 90 | + - name: Test 18 |
| 91 | + if: ${{ github.event_name }} == 'foo' |
| 92 | + run: echo "Test 18 should not be printed" |
| 93 | + - name: Test 19 |
| 94 | + if: ${{ contains(fromJSON('["OWNER", "MEMBER"]'), github.event.pull_request.author_association )}} || github.actor == 'renovate[bot]' |
| 95 | + run: echo "Test 19 should not be printed" |
| 96 | + - name: Test 20 |
| 97 | + if: ${{ hashFiles('./docker/Dockerfile.debian') }} != "" |
| 98 | + run: echo "Test 20 should not be printed" |
| 99 | + - name: Test 21 |
| 100 | + if: > |
| 101 | + ${{ github.event.workflow_run.event == 'pull_request' && |
| 102 | + github.event.workflow_run.conclusion == 'success' }} |
| 103 | + run: echo "Test 21 should not be printed" |
| 104 | + - name: Test 22 |
| 105 | + if: | |
| 106 | + runner.os == 'Windows' && ( |
| 107 | + startsWith(inputs.node, 'v10.') || |
| 108 | + startsWith(inputs.node, 'v12.') || |
| 109 | + startsWith(inputs.node, 'v14.') |
| 110 | + ) |
| 111 | + run: echo "Test 22 should not be printed" |
0 commit comments