|
1 | | -name: Manifest |
| 1 | +name: Manifest Target |
2 | 2 | on: |
3 | 3 | pull_request_target: |
| 4 | + branches: |
| 5 | + - main |
4 | 6 |
|
5 | 7 | permissions: |
6 | 8 | contents: read |
7 | 9 |
|
8 | 10 | jobs: |
9 | | - contribs: |
| 11 | + manifest-check: |
10 | 12 | runs-on: ubuntu-24.04 |
11 | | - permissions: |
12 | | - pull-requests: write # to create/update pull request comments |
13 | | - name: Manifest |
| 13 | + name: Manifest Check |
| 14 | + outputs: |
| 15 | + manifest-result: ${{ steps.manifest.outputs.result }} |
14 | 16 | steps: |
| 17 | + |
15 | 18 | - name: Checkout the code |
16 | 19 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
17 | 20 | with: |
18 | 21 | path: zephyrproject/zephyr |
19 | | - ref: ${{ github.event.pull_request.head.sha }} |
| 22 | + ref: ${{ github.event.pull_request.base.sha }} |
20 | 23 | fetch-depth: 0 |
21 | 24 | persist-credentials: false |
22 | 25 |
|
|
32 | 35 | cd zephyrproject/zephyr |
33 | 36 | pip install -r scripts/requirements-actions.txt --require-hashes |
34 | 37 |
|
| 38 | + - name: Checkout the code |
| 39 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 40 | + with: |
| 41 | + path: zephyrproject/zephyr |
| 42 | + ref: ${{ github.event.pull_request.head.sha }} |
| 43 | + fetch-depth: 0 |
| 44 | + persist-credentials: false |
| 45 | + |
35 | 46 | - name: west setup |
36 | 47 | env: |
37 | 48 | BASE_REF: ${{ github.base_ref }} |
|
42 | 53 | west init -l . || true |
43 | 54 |
|
44 | 55 | - name: Manifest |
| 56 | + id: manifest |
45 | 57 | uses: zephyrproject-rtos/action-manifest@1729cded3fc798cf0de4a789c596dcb9c40eb14c # v1.9.1 |
46 | 58 | with: |
47 | 59 | github-token: ${{ secrets.GITHUB_TOKEN }} |
|
55 | 67 | dnm-labels: 'DNM (manifest)' |
56 | 68 | blobs-added-labels: 'Binary Blobs Added' |
57 | 69 | blobs-modified-labels: 'Binary Blobs Modified' |
| 70 | + |
| 71 | + apply-labels: |
| 72 | + runs-on: ubuntu-24.04 |
| 73 | + needs: manifest-check |
| 74 | + permissions: |
| 75 | + pull-requests: write # to create/update pull request comments and labels |
| 76 | + name: Apply Labels and Comments |
| 77 | + steps: |
| 78 | + - name: Checkout |
| 79 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 80 | + |
| 81 | + - name: Process manifest results |
| 82 | + run: | |
| 83 | + echo "Manifest check completed with result: ${{ needs.manifest-check.outputs.manifest-result }}" |
| 84 | + # This job can now add labels and comments based on the manifest check results |
| 85 | + # The actual logic would depend on what the manifest action outputs |
0 commit comments