forked from nrfconnect/ncs-matter
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.57 KB
/
Copy pathon_sync_pr_copilot.yml
File metadata and controls
49 lines (42 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: SDK sync PR Copilot analysis
on:
workflow_run:
workflows: ["SDK sync PR build"]
types: [completed]
permissions:
actions: read
contents: read
pull-requests: write
jobs:
copilot-twister-analysis:
if: |
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.head_branch == 'sdk-sync/test'
runs-on: ubuntu-24.04
env:
GH_TOKEN: ${{ secrets.SDK_SYNC_PAT }}
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Download Twister analysis artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: sdk-sync-twister-analysis
path: sdk-sync-twister-analysis
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: scripts/sdk_sync/requirements.txt
- name: Install dependencies
run: pip install -r scripts/sdk_sync/requirements.txt
- name: Trigger Copilot Twister analysis
continue-on-error: true
run: |
python scripts/sdk_sync/trigger_copilot_analysis.py \
--artifact-dir sdk-sync-twister-analysis \
--workflow-run-id "${{ github.event.workflow_run.id }}" \
--workflow-run-url "${{ github.event.workflow_run.html_url }}"