|
7 | 7 | pull_request_target: |
8 | 8 | branches: |
9 | 9 | - main |
| 10 | + pull_request: |
| 11 | + branches: |
| 12 | + - main |
| 13 | + paths: |
| 14 | + - .github/workflows/main.yml |
10 | 15 | workflow_dispatch: |
11 | 16 |
|
12 | 17 | concurrency: |
13 | | - group: ${{ github.workflow }}-${{ github.head_ref }} |
| 18 | + group: ${{ github.workflow }}-${{ github.head_ref }}-${{ github.event_name }} |
14 | 19 | cancel-in-progress: true |
15 | 20 |
|
16 | 21 | permissions: |
|
32 | 37 | - uses: actions/checkout@v6 |
33 | 38 | with: |
34 | 39 | fetch-depth: 0 |
35 | | - ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.head_ref || github.ref_name }} |
36 | | - # ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref_name }} |
| 40 | + ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref_name }} |
37 | 41 | token: ${{ secrets.MY_GITHUB_TOKEN || github.token }} |
38 | 42 | - name: Run ShellCheck |
39 | 43 | uses: ludeeus/action-shellcheck@2.0.0 |
|
70 | 74 | PROGRESS_CFG_BASE64: ${{ secrets.PROGRESS_CFG_BASE64 }} |
71 | 75 | steps: |
72 | 76 | - uses: actions/checkout@v6 |
| 77 | + continue-on-error: true |
73 | 78 | with: |
74 | 79 | fetch-depth: 0 |
75 | | - ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.head_ref || github.ref_name }} |
| 80 | + ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref_name }} |
76 | 81 | - run: ./scripts/run_test_wrapper.sh |
77 | 82 | - run: ./scripts/sonar_test_results_merge.sh |
78 | 83 | - name: SonarQube Scan - main |
@@ -104,7 +109,7 @@ jobs: |
104 | 109 | - uses: actions/checkout@v6 |
105 | 110 | with: |
106 | 111 | fetch-depth: 0 |
107 | | - ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.head_ref || github.ref_name }} |
| 112 | + ref: ${{ github.event_name == 'pull_request_target' && github.head_ref || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref_name }} |
108 | 113 | - uses: actions/download-artifact@v8 |
109 | 114 | with: |
110 | 115 | name: package-artifact |
|
0 commit comments