|
1 | 1 | on: |
2 | | - issue_comment: |
3 | | - types: |
4 | | - - created |
| 2 | + pull_request: |
| 3 | + branches: |
| 4 | + - 'master' |
5 | 5 | jobs: |
6 | 6 | distgen-check: |
7 | 7 | name: "Check distgen generated files" |
8 | 8 | runs-on: ubuntu-20.04 |
9 | | - if: | |
10 | | - github.event.issue.pull_request |
11 | | - && (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]')) |
12 | | - && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) |
13 | 9 | steps: |
14 | 10 | - name: Checkout repo |
15 | 11 | uses: actions/checkout@v2 |
16 | 12 | with: |
17 | | - ref: "refs/pull/${{ github.event.issue.number }}/head" |
18 | 13 | submodules: true |
19 | 14 |
|
20 | 15 | - name: Check distgen generated files |
|
50 | 45 |
|
51 | 46 | container-tests: |
52 | 47 | needs: distgen-check |
53 | | - # This job only runs for '[test]' pull request comments by owner, member |
54 | 48 | name: "Container tests: ${{ matrix.version }} - ${{ matrix.context }}" |
55 | 49 | runs-on: ubuntu-20.04 |
56 | 50 | strategy: |
@@ -113,15 +107,9 @@ jobs: |
113 | 107 | branch: "main" |
114 | 108 | tmt_repo: "https://github.com/sclorg/sclorg-testing-farm" |
115 | 109 |
|
116 | | - if: | |
117 | | - github.event.issue.pull_request |
118 | | - && (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]')) |
119 | | - && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) |
120 | 110 | steps: |
121 | 111 | - name: Checkout repo |
122 | 112 | uses: actions/checkout@v2 |
123 | | - with: |
124 | | - ref: "refs/pull/${{ github.event.issue.number }}/head" |
125 | 113 |
|
126 | 114 | - name: Prepare needed variables |
127 | 115 | shell: bash |
@@ -157,5 +145,5 @@ jobs: |
157 | 145 | tf_scope: ${{ matrix.tf_scope }} |
158 | 146 | tmt_plan_regex: ${{ matrix.tmt_plan }} |
159 | 147 | pull_request_status_name: "${{ matrix.context }} - ${{ matrix.version }}" |
160 | | - variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.issue.number }};SINGLE_VERSION=${{ matrix.version }};OS=${{ matrix.os_test }};TEST_NAME=test" |
| 148 | + variables: "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY;REPO_NAME=$GITHUB_REPOSITORY;PR_NUMBER=${{ github.event.number }};SINGLE_VERSION=${{ matrix.version }};OS=${{ matrix.os_test }};TEST_NAME=test" |
161 | 149 | compose: ${{ matrix.compose }} |
0 commit comments