-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1.32 KB
/
manifest-PR.yml
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
name: handle manifest PR
on:
# pull_request_target:
pull_request:
types: [opened, synchronize, closed]
branches:
- main
- v3.7.99-ncs1-branch
jobs:
call-manifest-pr-action:
runs-on: ubuntu-latest
env:
TARGET_BASE_BRANCH: ${{ github.event.pull_request.base.ref == 'refs/heads/v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}
# myjson: '{"v3.7.99-ncs1-branch" : "v2.8-branch", "v3.7.99-ncs1-branch": "v2.7-branch"}'
steps:
# - name: set TARGET_BASE_BRANCH
# # run: echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}
# run: echo "TARGET_BASE_BRANCH=${{ fromJSON(env.myjson)[env.var_foo] }}" >> $GITHUB_ENV
- name: read TARGET_BASE_BRANCH
run: echo "TARGET_BASE_BRANCH=${{ TARGET_BASE_BRANCH }}
# if: contains(['SNAPSHOT'],env.BUILD_VERSION)
# run: echo '{{ github.event.pull_request.base.ref}}'
# - name: handle manifest PR
# uses: thst-nordic/action-manifest-pr@add_release_branches
# with:
# token: ${{ secrets.NCS_GITHUB_TOKEN }}
# manifest-pr-title-details: ${{ github.event.pull_request.title }}
# target-repo: nrfconnect/sdk-nrf-testing
# forked-repo: nordicbuilder/sdk-nrf-testing
# base-branch: ${{ TARGET_BASE_BRANCH }}