-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (39 loc) · 1.02 KB
/
ncsref-update.yaml
File metadata and controls
41 lines (39 loc) · 1.02 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
name: Nrf-sdk Update, Build and Test
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
nrfsdk_sha_update: true
test:
permissions:
actions: read
contents: write
packages: read
uses: ./.github/workflows/target-test.yml
needs: build
secrets: inherit
with:
artifact_fw_version: ${{ needs.build.outputs.version }}
artifact_run_id: ${{ needs.build.outputs.run_id }}
pytest_marker: not slow
is_scheduled: false
update-pr-state:
needs: [build, test]
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
packages: read
pull-requests: write
steps:
- name: Update PR state
run: |
PR_ID=$(gh pr list --repo ${{ github.repository }} | grep nrf-manifest-auto-branch | awk '{print $1}')
gh pr review $PR_ID --approve --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ github.token }}