|
5 | 5 | name: Check pull request |
6 | 6 |
|
7 | 7 | concurrency: |
8 | | - group: ${{ github.head_ref }} |
| 8 | + group: ${{ github.head_ref || github.ref_name }} |
9 | 9 | cancel-in-progress: true |
10 | 10 |
|
11 | 11 | env: |
12 | 12 | SENTRY_DSN: 'https://public_key@example.com/project_id' |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - check-changed-files: |
16 | | - runs-on: ubuntu-latest |
17 | | - steps: |
18 | | - - name: Checkout repository |
19 | | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
20 | | - |
21 | | - - name: Check if relevant files have changed |
22 | | - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
23 | | - id: service-changed |
24 | | - with: |
25 | | - result-encoding: string |
26 | | - script: | |
27 | | - const script = require('.github/check-changed-files.js') |
28 | | - return await script({github, context}) |
29 | | -
|
30 | | - - name: Fail if no files changed |
31 | | - if: "${{ steps.service-changed.outputs.result != 'true' }}" |
32 | | - shell: bash |
33 | | - run: exit 1 |
34 | | - |
35 | 15 | check-codestyle: |
36 | | - needs: [ "check-changed-files" ] |
37 | 16 | runs-on: ubuntu-latest |
38 | 17 | steps: |
39 | 18 | - name: Checkout repository |
|
64 | 43 | path: build/reports/kotlin-build/ |
65 | 44 |
|
66 | 45 | unit-tests: |
67 | | - needs: [ "check-changed-files" ] |
68 | 46 | runs-on: ubuntu-latest |
69 | 47 | steps: |
70 | 48 | - name: Checkout repository |
|
102 | 80 | path: build/reports/kotlin-build/ |
103 | 81 |
|
104 | 82 | build-apks: |
105 | | - needs: [ "check-changed-files" ] |
106 | 83 | runs-on: ubuntu-latest |
107 | 84 | steps: |
108 | 85 | - name: Checkout repository |
@@ -133,7 +110,6 @@ jobs: |
133 | 110 | path: build/reports/kotlin-build/ |
134 | 111 |
|
135 | 112 | check-api: |
136 | | - needs: [ "check-changed-files" ] |
137 | 113 | runs-on: ubuntu-latest |
138 | 114 | steps: |
139 | 115 | - name: Checkout repository |
@@ -164,7 +140,6 @@ jobs: |
164 | 140 | path: build/reports/kotlin-build/ |
165 | 141 |
|
166 | 142 | lint: |
167 | | - needs: [ "check-changed-files" ] |
168 | 143 | runs-on: ubuntu-latest |
169 | 144 | steps: |
170 | 145 | - name: Checkout repository |
|
0 commit comments